You could not set the text AND set android:button="@drawable/some_drawable"
instead of android:button="@android:color/transparent"
, as in:
<RadioButton
android:id="@+id/radio0"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/yourbuttonbackground"
android:button="@drawable/some_drawable"
android:checked="true"
/>
You have only 3 ways to set drawables in a RadioButton:
- background (you need this for the "border layer-list")
- button (recommended)
- compound drawable/s (less recommended, since the positions are fixed at the sides, but you might want to experiment)