方法1:
btn_check.xml
<item android:drawable=
"@drawable/system_log_checkbox_press"
android:state_checked=
"true"
android:state_enabled=
"true"
/>
<item android:drawable=
"@drawable/system_log_checkbox_normal"
android:state_checked=
"false"
android:state_enabled=
"true"
/>
</selector>
<style name=
"checkboxstyle"
parent=
"@android:style/Widget.CompoundButton.CheckBox"
>
<item name=
"android:button"
>
@drawable
/btn_check</item>
</style>
引用style=
"@style/checkboxstyle"
方法2:
引用android:button=
"@drawable/btn_check"