]> Pileus Git - ~andy/csm213a-hw/blob - syc/res/layout/activity_main.xml
Add Android app from Yue
[~andy/csm213a-hw] / syc / res / layout / activity_main.xml
1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2     xmlns:tools="http://schemas.android.com/tools"
3     android:layout_width="match_parent"
4     android:layout_height="match_parent"
5     android:paddingBottom="@dimen/activity_vertical_margin"
6     android:paddingLeft="@dimen/activity_horizontal_margin"
7     android:paddingRight="@dimen/activity_horizontal_margin"
8     android:paddingTop="@dimen/activity_vertical_margin"
9     tools:context=".MainActivity" >
10
11     <Switch
12         android:id="@+id/logSwitch"
13         android:layout_width="wrap_content"
14         android:layout_height="wrap_content"
15         android:layout_alignParentBottom="true"
16         android:layout_alignParentLeft="true"
17         android:layout_marginBottom="146dp" />
18
19     <EditText
20         android:id="@+id/fileText"
21         android:layout_width="wrap_content"
22         android:layout_height="wrap_content"
23         android:layout_alignBaseline="@+id/logSwitch"
24         android:layout_alignBottom="@+id/logSwitch"
25         android:layout_toRightOf="@+id/TextView1"
26         android:ems="10"
27         android:width="150dp" >
28
29         <requestFocus />
30
31     </EditText>
32
33     <TextView
34         android:id="@+id/textView2"
35         android:layout_width="wrap_content"
36         android:layout_height="wrap_content"
37         android:layout_alignBaseline="@+id/xvlSwitch"
38         android:layout_alignBottom="@+id/xvlSwitch"
39         android:layout_alignLeft="@+id/TextView1"
40         android:text="Xively Upload"
41         android:textAppearance="?android:attr/textAppearanceLarge" />
42
43     <TextView
44         android:id="@+id/textView3"
45         android:layout_width="wrap_content"
46         android:layout_height="wrap_content"
47         android:layout_alignLeft="@+id/textView2"
48         android:layout_alignTop="@+id/evtSwitch"
49         android:text="Event Generation"
50         android:textAppearance="?android:attr/textAppearanceLarge" />
51
52     <Switch
53         android:id="@+id/evtSwitch"
54         android:layout_width="wrap_content"
55         android:layout_height="wrap_content"
56         android:layout_below="@+id/xvlSwitch"
57         android:layout_marginTop="23dp"
58         android:layout_toLeftOf="@+id/TextView1" />
59
60     <Switch
61         android:id="@+id/xvlSwitch"
62         android:layout_width="wrap_content"
63         android:layout_height="wrap_content"
64         android:layout_below="@+id/fileText"
65         android:layout_marginTop="26dp"
66         android:layout_toLeftOf="@+id/TextView1" />
67
68     <Button
69         android:id="@+id/evtBttn"
70         android:layout_width="wrap_content"
71         android:layout_height="wrap_content"
72         android:layout_alignBaseline="@+id/textView3"
73         android:layout_alignBottom="@+id/textView3"
74         android:layout_alignRight="@+id/xvlBttn"
75         android:text="Config" />
76
77     <Button
78         android:id="@+id/xvlBttn"
79         android:layout_width="wrap_content"
80         android:layout_height="wrap_content"
81         android:layout_alignBaseline="@+id/textView2"
82         android:layout_alignBottom="@+id/textView2"
83         android:layout_toRightOf="@+id/fileText"
84         android:text="Config" />
85
86     <TextView
87         android:id="@+id/TextView1"
88         android:layout_width="wrap_content"
89         android:layout_height="wrap_content"
90         android:layout_above="@+id/xvlSwitch"
91         android:layout_marginLeft="23dp"
92         android:layout_toRightOf="@+id/logSwitch"
93         android:text="Logging into File"
94         android:textAppearance="?android:attr/textAppearanceLarge" />
95
96     <Button
97         android:id="@+id/startBttn"
98         android:layout_width="wrap_content"
99         android:layout_height="wrap_content"
100         android:layout_alignLeft="@+id/logSwitch"
101         android:layout_alignRight="@+id/fileBttn"
102         android:text="Start" />
103
104     <LinearLayout
105         android:layout_width="wrap_content"
106         android:layout_height="wrap_content"
107         android:layout_alignParentBottom="true"
108         android:layout_alignParentRight="true"
109         android:layout_alignTop="@+id/startBttn"
110         android:layout_toRightOf="@+id/evtBttn"
111         android:paddingLeft="10dp" >
112
113         <TextView
114             android:id="@+id/dataStream1"
115             android:layout_width="wrap_content"
116             android:layout_height="wrap_content"
117             android:layout_weight="10.42"
118             android:lines="26"
119             android:textAppearance="?android:attr/textAppearanceMedium"
120             android:width="210dp" />
121
122         <TextView
123             android:id="@+id/dataStream2"
124             android:layout_width="wrap_content"
125             android:layout_height="wrap_content"
126             android:layout_weight="10.42"
127             android:lines="26"
128             android:textAppearance="?android:attr/textAppearanceMedium"
129             android:width="210dp" />
130
131     </LinearLayout>
132
133     <Button
134         android:id="@+id/fileBttn"
135         android:layout_width="wrap_content"
136         android:layout_height="wrap_content"
137         android:layout_alignLeft="@+id/xvlBttn"
138         android:layout_alignTop="@+id/fileText"
139         android:text="Config" />
140
141 </RelativeLayout>