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

Commit aa3b5961 authored by Scott Main's avatar Scott Main
Browse files

javadoc change: fix the selector sample XML in the class

description (was broken due to improper ordering)
parent 3fb4ee4e
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -44,11 +44,11 @@ import java.util.Map;
 * <pre>
 * <pre>
 * &lt;?xml version="1.0" encoding="utf-8"?&gt;
 * &lt;?xml version="1.0" encoding="utf-8"?&gt;
 * &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&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"
 *     &lt;item android:state_pressed="true"
 *           android:drawable="@drawable/button_pressed" /&gt; &lt;!-- pressed --&gt;
 *           android:drawable="@drawable/button_pressed" /&gt; &lt;!-- pressed --&gt;
 *     &lt;item android:state_focused="true"
 *     &lt;item android:state_focused="true"
 *           android:drawable="@drawable/button_focused" /&gt; &lt;!-- focused --&gt;
 *           android:drawable="@drawable/button_focused" /&gt; &lt;!-- focused --&gt;
 *     &lt;item android:drawable="@drawable/button_normal" /&gt; &lt;!-- default --&gt;
 * &lt;/selector&gt;</pre>
 * &lt;/selector&gt;</pre>
 *
 *
 * <p>Save the XML file in your project {@code res/drawable/} folder and then 
 * <p>Save the XML file in your project {@code res/drawable/} folder and then 
@@ -57,6 +57,11 @@ import java.util.Map;
 * based on the state of the button and the corresponding images
 * based on the state of the button and the corresponding images
 * defined in the XML.</p>
 * defined in the XML.</p>
 *
 *
 * <p>The order of the {@code &lt;item>} elements is important because they are
 * evaluated in order. This is why the "normal" button image comes last, because
 * it will only be applied after {@code android:state_pressed} and {@code
 * android:state_focused} have both evaluated false.</p>
 *
 * <p><strong>XML attributes</strong></p>
 * <p><strong>XML attributes</strong></p>
 * <p>
 * <p>
 * See {@link android.R.styleable#ImageView Button Attributes},
 * See {@link android.R.styleable#ImageView Button Attributes},