Android TutorialsNo Comments

andro-indian1.png
532 views.

A Switch is a two-state button through which only two states ON and OFF can be selected and it is one of the most use android user interface (UI) component in application setting. Switch button is only supported in android 4.0 and larger device. Following are the simple steps to implement Switch button in android.

Android Example: How to use Switch Button in Android

XML Layout File

res/layout/switch_button_example.xml

Java Activity File

src/MainActivity.java

sw

Be the first to post a comment.

Add a comment