I\'m trying to do in android a group of buttons that can be selected and activate only one of them. I need to work with the same logic of a radiogroup and radiobuttons.
While you can set this in code as Denny Schuldt suggested, a "cleaner" way is to do it in xml (e.g. drawable/radio.xml):
drawable/radio.xml
And set it as button background: android:background="@drawable/radio"
android:background="@drawable/radio"