android - Using image in RadioButton instead of text -


in android, want use radiobutton, not want check plain text. how can display in first image instead of second image? using radiogroup , radiobutton.
nothing special do.. add drawable in this:
<radiobutton android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawableleft="@drawable/ic_launcher"/> for effect this:

radiobutton contains textview default.. can operations present textview.
bonus: if want change circular dot shows check status, update android:button tag refer own drawable.
Comments
Post a Comment