i want to change the background-color of a button using a selector-xml-file. My approach is basically the one from the example at the bottom this page: http://developer.andr
You have to put the selector.xml file in the drwable folder.
Then write:
android:background="@drawable/selector".
This takes care of the pressed and focussed states.