Styles Extension for MIT App Inventor: A Deep Dive into UI Customization

make sure to set the component background color to the default color

I tried it but still does not work

error

please help me.

i only exported your extension to a new project

i got this error

1 Like

could you show the list of your extensions that you are using in your project

i started a new project and added only this extension to my project no any other componenets in project

are you sure this exports the APK successfully even with other extensions .


Hey there @Black_Knight , I believe I am encountering a similar issue. The function SetBGGradientWithRadius is not actually setting the gradient of the border of any view as described in the documentation of the blocks.

I have just tried it and it works fine with me :

Make sure that you have set the background color to the default color

i get same kind of error when i try to make a apk file but to test its ok... i cant i no way shape or form use this style version 1 or 2 both bugg the apk compiler...




i get those when i try to compile the apk if i dont use the style v2 or v1 in the project all is fine i can create the apk.. but as soon i import this style i cant generate a apk

What are other extensions you are using beside styles extension?

none
.. theres 2 version i saw this started when i deleted version 1 to place version2 then that happened

@Black_Knight
add this:

@SimpleFunction(description = "Apply rotation to a view. Value ranges from 0 to 360 degrees.")
public void ApplyRotate(AndroidViewComponent view, int value) {
    View targetView = view.getView();
    
    // Clamp the rotation value between 0 and 360 for safety
    float rotation = Math.max(0, Math.min(360, value));

    // Set pivot point to the center of the view
    targetView.setPivotX(targetView.getWidth() / 2f);
    targetView.setPivotY(targetView.getHeight() / 2f);

    // Apply rotation
    targetView.setRotation(rotation);
}

This fuction apply rotation to the components?

1 Like

Yeah, it is

1 Like

Nice one , I will add it in the next update ,
Thanks @mahmoud_hooda

1 Like

Is there a way to have multiple "viewComponent" in the "call styles .SetCornerRadius"? Trying to keep from having a call block for every component that has the same radius.

when using this extension , app build error saying d8 error. i m using other extension recyclerlist, does it conflicts the library? if yes, then how to compile without error

1 Like

I am using material dialogs liberary but I don't know how this may cause a conflict,
I will check it again

2 posts were split to a new topic: Error d8 while building