This question has already been answered:

enter image description here

Can I use RadioCheck to do this?

Or in Android there is some sort of special View for this?

Can you tell?

Reported as a duplicate by pavlofff , aleksandr barakin , VenZell , Streletz , Grundy May 27, '16 at 11:11 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • Customized RadioGroup is used for this. There is nothing more specialized in the SDK - pavlofff

1 answer 1

It is necessary to remove the button property in the xml markup from RadioButton , create a two-state drawable xml, checked = true / false. Also create a two-state color, checked = true / false.

Sections to help: StateList and Shape Drawable

https://developer.android.com/guide/topics/resources/drawable-resource.html