Android : How to define an "On/Off" Check box in android

on Sunday, April 19, 2015


I want to design a layout having a checkbox similar to the image below


enter image description here


How do I achieve this.


I tried the following but it's not the result I want :



<CheckBox
android:id="@+id/chkBox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="On"
android:textColor="#000"
android:textSize="17sp" />

0 comments:

Post a Comment