|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:tools="http://schemas.android.com/tools" |
| 5 | + android:layout_width="match_parent" |
| 6 | + android:layout_height="match_parent" |
| 7 | + tools:context=".MainActivity"> |
| 8 | + |
| 9 | + <ToggleButton |
| 10 | + android:id="@+id/toggleButton1" |
| 11 | + android:layout_width="wrap_content" |
| 12 | + android:layout_height="wrap_content" |
| 13 | + android:layout_alignParentLeft="true" |
| 14 | + android:layout_alignParentTop="true" |
| 15 | + android:layout_marginLeft="60dp" |
| 16 | + android:layout_marginTop="18dp" |
| 17 | + android:text="ToggleButton1" |
| 18 | + android:textOff="Off" |
| 19 | + android:textOn="On" /> |
| 20 | + |
| 21 | + <ToggleButton |
| 22 | + android:id="@+id/toggleButton2" |
| 23 | + android:layout_width="wrap_content" |
| 24 | + android:layout_height="wrap_content" |
| 25 | + android:layout_alignBaseline="@+id/toggleButton1" |
| 26 | + android:layout_alignBottom="@+id/toggleButton1" |
| 27 | + android:layout_marginLeft="44dp" |
| 28 | + android:layout_toRightOf="@+id/toggleButton1" |
| 29 | + android:text="ToggleButton2" |
| 30 | + android:textOff="Off" |
| 31 | + android:textOn="On" /> |
| 32 | + |
| 33 | + <Button |
| 34 | + android:id="@+id/button1" |
| 35 | + android:layout_width="wrap_content" |
| 36 | + android:layout_height="wrap_content" |
| 37 | + android:layout_below="@+id/toggleButton2" |
| 38 | + android:layout_marginTop="82dp" |
| 39 | + android:layout_toRightOf="@+id/toggleButton1" |
| 40 | + android:text="submit" |
| 41 | + /> |
| 42 | +</RelativeLayout> |
0 commit comments