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 android:paddingBottom="@dimen/activity_vertical_margin"
8 android:paddingLeft="@dimen/activity_horizontal_margin"
9 android:paddingRight="@dimen/activity_horizontal_margin"
10 android:paddingTop="@dimen/activity_vertical_margin"
11 app:layout_behavior="@string/appbar_scrolling_view_behavior"
12 tools:context="com.example.ali.control.MainActivity"
13 tools:showIn="@layout/activity_main">
16 android:id="@+id/textView4"
17 android:layout_width="wrap_content"
18 android:layout_height="wrap_content"
19 android:layout_marginTop="60dp"
20 android:text="Hello World! This is a test"
21 android:layout_below="@+id/textView"
22 android:layout_alignParentLeft="true"
23 android:layout_alignParentStart="true" />
26 android:layout_width="wrap_content"
27 android:layout_height="wrap_content"
28 android:text="Hello World! This is a test"
29 android:id="@+id/textView"
30 android:layout_marginTop="27dp"
31 android:layout_below="@+id/switch5"
32 android:layout_alignParentLeft="true"
33 android:layout_alignParentStart="true"
34 android:layout_alignParentRight="true"
35 android:layout_alignParentEnd="true" />
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:text="Light 1 "
41 android:id="@+id/switch1"
42 android:checked="false"
43 android:layout_alignParentTop="true"
44 android:layout_alignParentLeft="true"
45 android:layout_alignParentStart="true"
46 android:layout_marginLeft="104dp"
47 android:layout_marginStart="104dp" />
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:text="Light 2 "
53 android:id="@+id/switch2"
54 android:checked="false"
55 android:layout_below="@+id/switch1"
56 android:layout_alignLeft="@+id/switch1"
57 android:layout_alignStart="@+id/switch1" />
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:text="Light 3 "
63 android:id="@+id/switch3"
64 android:checked="false"
65 android:layout_below="@+id/switch2"
66 android:layout_alignLeft="@+id/switch2"
67 android:layout_alignStart="@+id/switch2" />
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
73 android:id="@+id/switch4"
74 android:checked="false"
75 android:layout_below="@+id/switch3"
76 android:layout_alignLeft="@+id/switch3"
77 android:layout_alignStart="@+id/switch3" />
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
83 android:id="@+id/switch5"
84 android:checked="false"
85 android:layout_below="@+id/switch4"
86 android:layout_alignLeft="@+id/switch3" />