title: How to change background image and text of button on click in Android?
body: <p>I have an idea of how to apply selectors for buttons when we need to change the background image of buttons. I also want to change the text color when the button is pressed. Is there any similar way like creating selector xml to do that? The other option is, I guess, would be changing the text color in onclick method but I wanted to know if there is some other way or some better way of doing the same.</p>
  
  <p>Thanks</p>