Selector states

Report a typo

Sort the missing states into the correct order.

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item ... android:drawable="@drawable/something_pressed" />
    <item ... android:drawable="@drawable/something_focused" />
    <item ... android:drawable="@drawable/something_disabled" />
    <item ... android:drawable="@drawable/something_normal" />
</selector>
Put the items in the correct order
android:state_focused="true" android:state_enabled="true"
android:state_enabled="false"
android:state_pressed="true"
___

Create a free account to access the full topic