Skip to content

Commit 41418ec

Browse files
author
NoraBora
committed
ImageButton example doesn't work. Default state should be at the last.
see res/res/drawable/button_inset.xml
1 parent 9df3331 commit 41418ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/widget/ImageButton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
* <pre>
4545
* &lt;?xml version="1.0" encoding="utf-8"?&gt;
4646
* &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
47-
* &lt;item android:drawable="@drawable/button_normal" /&gt; &lt;!-- default --&gt;
4847
* &lt;item android:state_pressed="true"
4948
* android:drawable="@drawable/button_pressed" /&gt; &lt;!-- pressed --&gt;
5049
* &lt;item android:state_focused="true"
5150
* android:drawable="@drawable/button_focused" /&gt; &lt;!-- focused --&gt;
51+
* &lt;item android:drawable="@drawable/button_normal" /&gt; &lt;!-- default --&gt;
5252
* &lt;/selector&gt;</pre>
5353
*
5454
* <p>Save the XML file in your project {@code res/drawable/} folder and then

0 commit comments

Comments
 (0)