How to create switch button customize in Android -
i'm studing android programming using switch button.
but can't implement switch button o,i simbols(you can see android setting screen).
i tried implement using these properites (android:thumb, android:track)
but can't implement simbol(o, i).
do have idea how it? tried find answer haven't been successful.
thank you.
you can use following attributes in activity_main.xml:
<switch android:id="@+id/switch1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparenttop="true" android:layout_centerhorizontal="true" android:checked="true" android:texton="i" android:textoff="o" />
hope you..
Comments
Post a Comment