button设置
<item android:state_pressed="true">
<shape>
<corners android:radius="30dp"/>
<size
android:height="48dp"/>
<solid android:color="@android:color/holo_red_light" />
</shape>
</item>
<item >
<shape>
<corners android:radius="30dp"/>
<size
android:height="48dp"/>
<solid android:color="@color/btn_blue_bg" />
</shape>
</item>
点击图片背景
<item android:drawable="@drawable/btn_check_pressed" android:state_checked="true"/>
<item android:drawable="@drawable/btn_check_normal" android:state_checked="false"/>
<item android:drawable="@drawable/btn_check_normal"/>
按下聚焦时选择背景
<item android:drawable="@color/law_screen_divider" android:state_pressed="true"/>
<item android:drawable="@color/law_screen_divider" android:state_focused="true"/>
<item android:drawable="@color/white" />
按下选择时背景
<item android:color="@color/white" android:state_pressed="true"/>
<item android:color="@color/white" android:state_selected="true"/>
<item android:color="@color/bg_color"/>