CheckBox在棉花糖中显示褪色

时间:2016-08-19 08:02:45

标签: android

<CheckBox
 android:id="@+id/CheckBox01_district"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 android:gravity="end"
 android:padding="10dp"
 android:layout_marginRight="6sp"
 android:focusable="false" />

我已经把它写成了复选框。它在Kitkat显示得很好但在棉花糖中显示出褪色。

1 个答案:

答案 0 :(得分:0)

您应该使用android.support.v7.widget.AppCompatCheckBox而不是CheckBox:

<android.support.v7.widget.AppCompatCheckBox 
android:id="@+id/CheckBox01_district"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="end"
android:padding="10dp"
android:layout_marginRight="6sp"
android:focusable="false"/> 
相关问题