How to change AppCompatCheckBox color efficiently?
问题 I found a very strange behaviour in my AppCompatCheckBox, already searched a fix for it but didn't find, that's why I decided to ask here. I was trying to change the checked AppCompatCheckBox color programatically (as my app's color scheme changes dinamically, I can't use the XML attributes to color the CheckBox), so I used this approach: chkTos = (AppCompatCheckBox) findViewById(R.id.checkboxTos); ColorStateList colorStateList = new ColorStateList( new int[][]{ new int[]{-android.R.attr