ImageButton example doesn't work. Default state should be at the last.
see res/res/drawable/button_inset.xml
This commit is contained in:
@@ -44,11 +44,11 @@ import java.util.Map;
|
||||
* <pre>
|
||||
* <?xml version="1.0" encoding="utf-8"?>
|
||||
* <selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
* <item android:drawable="@drawable/button_normal" /> <!-- default -->
|
||||
* <item android:state_pressed="true"
|
||||
* android:drawable="@drawable/button_pressed" /> <!-- pressed -->
|
||||
* <item android:state_focused="true"
|
||||
* android:drawable="@drawable/button_focused" /> <!-- focused -->
|
||||
* <item android:drawable="@drawable/button_normal" /> <!-- default -->
|
||||
* </selector></pre>
|
||||
*
|
||||
* <p>Save the XML file in your project {@code res/drawable/} folder and then
|
||||
|
||||
Reference in New Issue
Block a user