I am using StatelistDrawable buttons, setup in the designer, but how would I add these buttons in code, not using the designer?
StatelistDrawable
ColorDrawable
Color: #FFFFFFFF
Corner radius: 6
Border color: #00FFFFFF
BorderWidth: 0
Pressed Drawable:
Color: Default
Corner radius: 0
RBS
Trying to place button on a panel and set the gap between those buttons.
Noticed there seems to be a difference between DefaultDrawable and StateListDrawable buttons as how the edge of the button shows on the panel.
These 2 layout scripts show the difference:
For StateListDrawable buttons this...
Hi!
I'm using StateListDrawable on 2 buttons and when I press Button1 the Button2 changes to pressed, too. But, if I press Button2 the Button1 works ok.
Also, the button1 doesn't show with the correct width, it seems like the Button2 forces its width.
This is the code:
Dim benabled, bpressed...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.