In Android
, I want to use RadioButton
, but I do not want to check a plain text. How can I get the display in the first image instead of the second image? Using RadioGroup
and RadioButton
.
Nothing special to do.. just add drawable in it like this:
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_launcher"/>
For an effect like this:
RadioButton
itself contains a TextView
as default.. so you can do all the operations those are present for any TextView
.
BONUS: If you want to change the circular dot that shows check
status, just update the android:button
tag to refer your own drawable
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With