can i change color of button in alert dialog when touch in that button in android. How? Thanks for your help!
Tell me more
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Here is how I did.
I find the drawable here |
|||||||||||||
|
Are you referring to the neutral, positive and negative buttons? Or to buttons you included in the layout? If you are referring to the former, then yes you can. Check out the Custom Button section in this tutorial. You basically need an XML file that will tell your button which drawable/color to use for each state change. You can then set this XML file as your button's background. |
|||||
|