Extensions that use the Components View

Continuing the discussion from New Version Released:

Hello,
In the above Quote it mentions that you had fixed an issue for Extensions that use Layouts.

I have an Extension that sets a backgrounddrawable for the View of any standard Component.
It works correctly for Layouts and Labels but if I use it on a Button the app crashes when the Button is Clicked.

Is there something I/You could do to correct this?

Thanks for your time,
Ken

Our buttons use other drawables as app inventor does.
We do this that our users have always Material design on Buttons.

1 Like

My extension works as intended on AI and the other builders.

Because I only have this issue with Buttons, I’m guessing that the Animation/Shadow is causing the error with my extension.

I will try to find a workaround.

Thanks for the quick reply!

Edit:
One more quick question, are you using View.setElevation() in Button.Click effect?

no and too set elevation have nothing to do with animations.

1 Like

Thanks!
I edited my previous post, I didn’t mean Android Animation I meant for the Button.Click effect.

We dont use Set elevation on Button click.
We use ripple drawables for Material ripple effect

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.