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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -