Yes, I just want to change the button background.
How can I do it at runtime?
Would you please to give me a simple example?
Best regards,
Eric
On Jan 29, 2:17 am, Kostya Vasilyev kmans...@gmail.com wrote:
If you only want tochangethe way aToggleButtonlooks (not behaves),
you can replace the
I was interested in doing something like this as well. My app has 6
toggle buttons in a row on one line, and it doesn't quite fit on
portrait screen. I wanted to make a custom toggle button, color,
width, etc.
You could also make your own state-list drawable I think It's called.
Anyway in the
If you only want to change the way a ToggleButton looks (not behaves),
you can replace the background from XML with your own.
Note that ToggleButton uses a layer-list drawable to overlay the toggle
state over the standard button background, to reduce the number of
needed images.
You can
3 matches
Mail list logo