9

Highlight effect on Button's onClick is gone after changing background to a color

view full story
linux-howto

http://stackoverflow.com – When a button is left unchanged from the default grey, it highlights when clicked before performing its onClick action. I have changed the background of the button to red and now the highlight effect when clicked is gone. How do I make this happen again with the new background? I guess what I want is just a highlighted red color or a little lighter red when clicked. I've looked around on SO and found a lot of people saying create a onclickbuttonhighlight.xml file in the res/drawable folder. I did so below. <selector xmlns:android="http://schemas.android.com/apk/res/android"> (HowTos)