selector xmlns:android=“http://schemas.android.com/apk/res/android


<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@mipmap/sel_y" android:state_checked="false" />
    <item android:drawable="@mipmap/sel_n" android:state_checked="true" />
selector>

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@mipmap/sel_yes"  android:state_checked="true"  android:state_pressed="true" />
    <item android:drawable="@mipmap/sel_no" android:state_checked="false"  android:state_pressed="false" />
selector>

你可能感兴趣的:(android)