-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfanactivity.xml
75 lines (67 loc) · 2.92 KB
/
fanactivity.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
69
70
71
72
73
74
75
<?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.FanActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:titleTextColor="@android:color/white"
android:background="@color/colorPrimary"
android:id="@+id/toolbar"/>
<TextView
android:text="Fan 1"
android:layout_width="200dp"
android:layout_height="50dp"
android:layout_below="@id/toolbar"
android:id="@+id/textView1"
android:textAppearance="@style/TextAppearance.AppCompat.Display1" />
<SeekBar
android:layout_width="200dp"
android:layout_height="50dp"
android:id="@+id/fseekBar1"
android:layout_below="@+id/textView1"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/ftoggleButton1"/>
<ToggleButton
android:text="ToggleButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/ftoggleButton1"
android:layout_below="@+id/textView1"
android:layout_alignParentEnd="true"/>
<TextView
android:text="Fan 2"
android:layout_width="200dp"
android:layout_height="50dp"
android:id="@+id/textView2"
android:layout_below="@+id/fseekBar1"
android:textAppearance="@style/TextAppearance.AppCompat.Display1" />
<SeekBar
android:layout_width="200dp"
android:layout_height="50dp"
android:id="@+id/fseekBar2"
android:layout_below="@+id/textView2"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/ftoggleButton2"/>
<ToggleButton
android:text="ToggleButton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/ftoggleButton2"
android:layout_below="@+id/textView2"
android:layout_alignParentEnd="true"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/sendbutton2"
android:layout_alignParentBottom="true"
android:layout_below="@+id/fseekBar2"
android:layout_marginEnd="77dp"
android:text="Send" />
</RelativeLayout>
</ScrollView>