Advertisement
ThreeYulianto

Switch XML

Jan 17th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.99 KB | None | 0 0
  1.     <Switch
  2.        android:id="@+id/switch1"
  3.        android:layout_width="wrap_content"
  4.        android:layout_height="wrap_content"
  5.        android:switchMinWidth="56dp"
  6.        android:layout_marginLeft="100dp"
  7.        android:layout_marginTop="120dp"
  8.        android:text="Switch1:"
  9.        android:checked="true"
  10.        android:textOff="OFF"
  11.        android:textOn="ON"/>
  12.     <Switch
  13.        android:id="@+id/switch2"
  14.        android:layout_width="wrap_content"
  15.        android:layout_height="wrap_content"
  16.        android:switchMinWidth="56dp"
  17.        android:layout_below="@+id/switch1"
  18.        android:layout_alignLeft="@+id/switch1"
  19.        android:text="Switch2:"
  20.        android:textOff="OFF"
  21.        android:textOn ="ON"/>
  22.     <Button
  23.        android:id="@+id/getBtn"
  24.        android:layout_width="wrap_content"
  25.        android:layout_height="wrap_content"
  26.        android:layout_marginLeft="150dp"
  27.        android:layout_marginTop="200dp"
  28.        android:text="Get" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement