In the old Andoid API (at least API 19), the checkboxes set in the CheckBox are not visible, but after clicking checked it becomes true . I attach screenshots

API 19:

API 22:

CheckBox XML:

<CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Доктор" android:id="@+id/checkBoxDoctor" android:checked="false" android:clickable="true" android:layout_alignWithParentIfMissing="false" android:longClickable="false" android:singleLine="true" android:textSize="20dp" android:textColor="#ffffff" android:buttonTint="@android:color/holo_red_dark" android:layout_below="@+id/editTextCntMafia" android:layout_alignRight="@+id/buttonBack" android:layout_alignEnd="@+id/buttonBack" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" /> 

    1 answer 1

    You can try the AppCompatCheckBox class: https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckBox.html

    • when using the appcompat theme, the checkboxes should be replaced with the checkboxes from the library without any participation - pavlofff
    • android: buttonTint = "@ android: color / holo_red_dark" this line indirectly indicates that it is most likely that not the appcompat theme is used, but holo - AZ