Ken
(Ken)
August 8, 2018, 11:03pm
#1
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
Mika
August 9, 2018, 4:03am
#2
Our buttons use other drawables as app inventor does.
We do this that our users have always Material design on Buttons.
1 Like
Ken
(Ken)
August 9, 2018, 4:20am
#3
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?
Mika
August 9, 2018, 4:51am
#4
no and too set elevation have nothing to do with animations.
1 Like
Ken
(Ken)
August 9, 2018, 5:23am
#5
Thanks!
I edited my previous post, I didn’t mean Android Animation I meant for the Button.Click effect.
Mika
August 9, 2018, 5:46am
#6
We dont use Set elevation on Button click.
We use ripple drawables for Material ripple effect
2 Likes
system
(system)
Closed
September 8, 2018, 5:46am
#7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.