通过自定义checkbox和点击响应事件说说<selector>
1.首先在drawable文件夹中添加checkbox_style.xml
<pre class="html" name="code"><span style="font-size:14px;"><?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"></span>
<span style="font-size:14px;">
<item android:drawable="@drawable/checkbox_pressed" android:state_checked="true"/>
<item android:drawable="@drawable/checkbox_normal" android:state_checked="false"/>
<item android:drawable="@drawable/checkbox_normal"/></span>
<span style="font-size:14px;">
</selector></span>
2.在values文件夹下的styles.xml文件中添加CustomCheckboxTheme样式。
<pre class="html" name="code"><span style="font-size:14px;"><style name="</span><span style="font-size:14px;color:#ff0000;">Custo