As seen in the answer - Here I get my required output
I get a output as:
Keeping all other functionality i want to show an image
in place of Button
text
How can i achieve this !
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: