<selector
    xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:state_focused="true"
        android:drawable="@drawable/button"/>
    <item
        android:state_pressed="true"
        android:drawable="@drawable/buttonpressed" />
    <item
        android:drawable="@drawable/button" />
</selector>