Android Tutorials : icon next to Radio button

Android Tutorials : icon next to Radio button

Following code shows how to display icon next to radio button
close bracts to below code
RadioButton android:id="@+id/RadioButton01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Text"
android:drawableLeft="@drawable/icon"
android:drawableRight="@drawable/icon"
android:drawableTop="@drawable/icon"
android:drawableBottom="@drawable/icon"

Here you can see 4 locations where you can put the icons, mainly top, right, bottom and left. The names are android:drawableTop, android:drawableRight, android:drawableBottom and android:drawableLeft.


No comments:

 
Top Blogs