在drawable文件夹里,创建:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/checked"/>
<item android:state_focused="true" android:drawable="@drawable/focus"/>
<item android:state_pressed="true" android:drawable="@drawable/pressed"/>
</selector>