switch example in android. We require API level 14 activity_main.xml < RelativeLayout xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:tools = "http://schemas.android.com/tools" android:layout_width = "match_parent" android:layout_height = "match_parent" tools:context = ".MainActivity" > < Switch android:id = "@+id/main_switch1" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:layout_alignParentLeft = "true" android:layout_marginLeft = "27dp" android:layout_marginTop = "46dp" android:text = "Switch" /> </ RelativeLayout...