Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41418ecf authored by NoraBora's avatar NoraBora
Browse files

ImageButton example doesn't work. Default state should be at the last.

see res/res/drawable/button_inset.xml
parent 9df33318
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,11 +44,11 @@ import java.util.Map;
 * <pre>
 * &lt;?xml version="1.0" encoding="utf-8"?&gt;
 * &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
 *     &lt;item android:drawable="@drawable/button_normal" /&gt; &lt;!-- default --&gt;
 *     &lt;item android:state_pressed="true"
 *           android:drawable="@drawable/button_pressed" /&gt; &lt;!-- pressed --&gt;
 *     &lt;item android:state_focused="true"
 *           android:drawable="@drawable/button_focused" /&gt; &lt;!-- focused --&gt;
 *     &lt;item android:drawable="@drawable/button_normal" /&gt; &lt;!-- default --&gt;
 * &lt;/selector&gt;</pre>
 *
 * <p>Save the XML file in your project {@code res/drawable/} folder and then