I\'ve created a custom view which should change it\'s background image when pressed, highlighted or disabled. The app runs but the button doesn\'t change it\'s background.
It extends from View, not button, so it's not clickable or focusable by default. Adjust with
android:clickable="true" android:focusable="true"
in your XML.
You can also set these in the constructor of your View class if you want to do it in java:
setFocusable(true); setClickable(true);