android - Using image in RadioButton instead of text -


check image

check 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:

enter image description here

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

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -