-
Notifications
You must be signed in to change notification settings - Fork 0
/
lightactivity.xml
68 lines (60 loc) · 2.58 KB
/
lightactivity.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.example.android.digitalhome.LightActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="Bulb 1"
android:layout_width="200dp"
android:layout_height="50dp"
android:id="@+id/textView1"
android:textAppearance="@style/TextAppearance.AppCompat.Display1" />
<SeekBar
android:layout_width="200dp"
android:layout_height="50dp"
android:id="@+id/lseekBar1"
android:layout_below="@+id/textView1"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/ltoggleButton1" />
<ToggleButton
android:text="ToggleButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/ltoggleButton1"
android:layout_below="@+id/textView1"
android:layout_alignParentEnd="true" />
<TextView
android:text="Bulb 2"
android:layout_width="200dp"
android:layout_height="50dp"
android:id="@+id/textView2"
android:layout_below="@+id/lseekBar1"
android:textAppearance="@style/TextAppearance.AppCompat.Display1" />
<SeekBar
android:layout_width="200dp"
android:layout_height="50dp"
android:id="@+id/lseekBar2"
android:layout_below="@+id/textView2"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/ltoggleButton2" />
<ToggleButton
android:text="ToggleButton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/ltoggleButton2"
android:layout_below="@+id/textView2"
android:layout_alignParentEnd="true" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/sendbutton1"
android:layout_alignParentBottom="true"
android:layout_below="@+id/lseekBar2"
android:layout_marginEnd="77dp"
android:text="Send" />
</RelativeLayout>
</ScrollView>