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
As your error states, you have to define drawable attibute for the items (for some reason it is required when it comes to background definitions), so:
Also note that drawable attribute doesn't accept raw color values, so you have to define the colors as resources. Create colors.xml file at res/values folder:
#000
#00f
#f00