I have this resource file for colors
#00f
#f00
You could use an xml file like one below, to create states for your button.
The info about attributes available is here. You simply copy this xml file to your drawables folder in your project, name it for example custom_button.xml, and reference it in your layout with
android:background="@drawable/custom_button"
Here is xml file...
-
-
-