1、扩大CheckBox点击区域方法
https://blog.csdn.net/lin_dianwei/article/details/80089908
第一种:
<CheckBox android:id="@+id/edit_ck" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="15dp" android:background="@android:color/transparent" android:button="@null" android:drawableStart="@drawable/read_ck_selector"/>
第二种:
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:background="@android:color/holo_blue_dark"
android:button="@drawable/check_selector"/>
这样写的问题:
1、paddingStart(paddingLeft)相当于失效的。原因是CheckBox继承CompoundButton,而CompoundButton对button的绘制问题导致的。
2、点击有阴影效果