I\'m working on an android form with a radio group containing a set of radio buttons. From what I can tell there is no way to set the color a radio button highlights when yo
Use AppCompatRadioButton instead of RadioButton.
To change the color programatically do this:
ColorStateList colorStateList = new ColorStateList(
new int[][]{
new int[]{android.R.attr.state_enabled} //enabled
},
new int[] {getResources().getColor(R.color.colorPrimary) }
);
AppCompatRadioButton radioButton = (AppCompatRadioButton) findViewById(R.id.rb);
radioButton.setSupportButtonTintList(colorStateList);