title: Android ImageButton with a selected state?
body: <p>If I was using an ImageButton with a selector for its background, is there a state I can change which will make it change its appearance? Right now I can get it to change images when pressed, but there seems to be no "highlighted" or "selected" or similar state which lets me toggle its appearance at will.</p>
  
  <p>Here's my XML; it only changes appearance when pressed.</p>
  
  <pre><code> &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/map_toolbar_details_selected" /&gt;
  &lt;item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/map_toolbar_details_selected" /&gt;
  &lt;item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/map_toolbar_details_selected" /&gt;
  &lt;item android:drawable="@drawable/map_toolbar_details" /&gt;
  </code></pre>
  
  <p></p>