mercredi 3 août 2016

change Radiogroup circle colors

I have a radiogroup and trying to change the circle colors. My code is below but running into an issue getting "setButtonTintList" to work.

if (Item.getCar()=='Audi'){

int textColor = Color.parseColor("#000000");

//this is what I'm trying to do but setButtonTextList doesn't even show up as an option
radiogroup.setButtonTextList(ColorStateList.valueOf(textColor));

}

Aucun commentaire:

Enregistrer un commentaire