I have the following code for a button in the layout file for my application
To get you to the correct resource here is the documentation of the StateList Drawable. check this link
You just create and define it in your res/drawable subdirectory and set it as your buttons background.