自定义的ChecBox样式

。xml里面

& lt;

,,,,android: id=癅 + id/checkBox1”

,,,,android: layout_width=" 29 dp "

,,,,android: layout_height=" 29 dp "

,,,,android: layout_alignBaseline=癅 + id/textView1”

,,,,android: layout_alignBottom=癅 + id/textView1”

,,,,android: layout_alignParentRight=" true "

,,,,

,,,,android: layout_marginRight=" 10 dp/祝辞

,,

,,,风格里面

,,,,

, & lt;样式名=癈ustomCheckboxTheme”,,,,,父母=癅android:风格/Widget.CompoundButton.CheckBox”比;,

,,,& lt;项目名称=癮ndroid:按钮”祝辞@drawable/checbox_style,

,,,& lt;/style>

可拉的上:

,,,

& lt; ?xml version=" 1.0 " encoding=" utf - 8 " ?在

& lt;选择xmlns: android=" http://schemas.android.com/apk/res/android "在

,,& lt;项目android:可拉的=" @drawable/检查”android: state_checked=" true "/比;,

,,& lt;项目android:可拉的=" @drawable/check_all_pressed”android: state_checked=癴alse”/祝辞,

,,& lt;项目android:可拉的=癅drawable/check_all_pressed”/比;,

& lt;/selector>


自定义的ChecBox样式