<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/1" /> <item android:state_window_focused="false" android:state_enabled="false" android:drawable="@drawable/2" /> <item android:state_pressed="true" android:drawable="@drawable/3" /> <item android:state_focused="true" android:state_enabled="true" android:drawable="@drawable/8" /> <item android:state_enabled="true" android:drawable="@drawable/7" /> ?<item android:state_focused="true" android:drawable="@drawable/9" /> <item android:drawable="@drawable/0" /> ?</selector>
?主要常用的状态就这些了。整理下方便查阅。