In case if somebody has a problem that the checked State of CheckBox element is messed up and will be shown as filled rectangular without check mark the solution is:
Change to <androidx.appcompat.widget.AppCompatCheckBox>
Set color through the app: not android: attribute! Like this: app:buttonTint="?colorOnInfo"