<?xml version="1.0" encoding="utf-8"?>
<!-- State drawables allow you to define states.
  For each state a different drawable can get assigned to the View.
  For example the following defines different drawables for a button depending on its state. -->

<selector xmlns:android="http://schemas.android.com/apk/res/android">

    <item android:drawable="@drawable/example1"
        android:state_pressed="true" />
    <item android:drawable="@drawable/example2"
        android:state_checked="true" />
    <item android:drawable="@drawable/example3" />

</selector>