In Android, I have a button that contains an image and text. When the button is disabled, the text is automatically grayed out, but the image stays the same. Is it possible to have the image dimmed when the button is disabled without having two separate images?
Share
Finally got it!
I haven’t found a way to do this by setting the image in XML, so have to set it in the code. Here’s what I got that works: