D devmobile Active Member Licensed User Jul 28, 2017 #1 Hello I dont know why ny buttons have shadow How do i remove it?
Emme Developer Well-Known Member Licensed User Longtime User Jul 28, 2017 #2 Set it's background Upvote 0
D devmobile Active Member Licensed User Jul 28, 2017 #3 Emme Developer said: Set it's background Click to expand... I set background to it in designer Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2017 #4 Buttons are elevated by default in the material theme. If you set their background to a non-default background then the elevation will be removed. Upvote 0
Buttons are elevated by default in the material theme. If you set their background to a non-default background then the elevation will be removed.
D devmobile Active Member Licensed User Jul 30, 2017 #5 Erel said: Buttons are elevated by default in the material theme. If you set their background to a non-default background then the elevation will be removed. Click to expand... I set background for it with Statelistdrawable But some button didn't removed shadow Upvote 0
Erel said: Buttons are elevated by default in the material theme. If you set their background to a non-default background then the elevation will be removed. Click to expand... I set background for it with Statelistdrawable But some button didn't removed shadow
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2017 #6 Please post a screenshot and a small project that demonstrates this issue. Upvote 0
D devmobile Active Member Licensed User Jul 30, 2017 #7 Erel said: Please post a screenshot and a small project that demonstrates this issue. Click to expand... It removed shadow from button Thanks (I have changed button background after remove shadow) Upvote 0
Erel said: Please post a screenshot and a small project that demonstrates this issue. Click to expand... It removed shadow from button Thanks (I have changed button background after remove shadow)
Fabio Campanella Member Licensed User Longtime User Aug 10, 2017 #8 I have the same problem and I have already changed the background but in the certain displays show this: The second image show in the s6 edge display and others phones and tablets Upvote 0
I have the same problem and I have already changed the background but in the certain displays show this: The second image show in the s6 edge display and others phones and tablets
D devmobile Active Member Licensed User Aug 10, 2017 #9 Fabio Campanella said: I have the same problem and I have already changed the background but in the certain displays show this: The second image show in the s6 edge display and others phones and tabletsView attachment 58559 View attachment 58560 Click to expand... Do you can solve it? Upvote 0
Fabio Campanella said: I have the same problem and I have already changed the background but in the certain displays show this: The second image show in the s6 edge display and others phones and tabletsView attachment 58559 View attachment 58560 Click to expand... Do you can solve it?
Fabio Campanella Member Licensed User Longtime User Aug 10, 2017 #10 No, I did not fix it. The problem is that the version of android lollipop has introduced this thing, and to remove it we need to call button.setStateListAnimator (null) but this is not possible in B4a. Is there a trick to do that? Upvote 0
No, I did not fix it. The problem is that the version of android lollipop has introduced this thing, and to remove it we need to call button.setStateListAnimator (null) but this is not possible in B4a. Is there a trick to do that?
D devmobile Active Member Licensed User Aug 10, 2017 #11 Fabio Campanella said: No, I did not fix it. The problem is that the version of android lollipop has introduced this thing, and to remove it we need to call button.setStateListAnimator (null) but this is not possible in B4a. Is there a trick to do that? Click to expand... I use below sub Code: Copy Sub RemoveShadow(Button1 As Button) Dim sdk As Phone If sdk.SdkVersion < 21 Then Return Dim jo As JavaObject jo = Button1 jo.RunMethod("setStateListAnimator", Array(Null)) End Sub Upvote 0
Fabio Campanella said: No, I did not fix it. The problem is that the version of android lollipop has introduced this thing, and to remove it we need to call button.setStateListAnimator (null) but this is not possible in B4a. Is there a trick to do that? Click to expand... I use below sub Code: Copy Sub RemoveShadow(Button1 As Button) Dim sdk As Phone If sdk.SdkVersion < 21 Then Return Dim jo As JavaObject jo = Button1 jo.RunMethod("setStateListAnimator", Array(Null)) End Sub
Fabio Campanella Member Licensed User Longtime User Aug 10, 2017 #12 it Works!!!!!!!!1 THANKS VERY MUCH!!! Upvote 0
D devmobile Active Member Licensed User Aug 10, 2017 #13 Fabio Campanella said: it Works!!!!!!!!1 THANKS VERY MUCH!!! Click to expand... Ohom Upvote 0