1 | <?xml version="1.0" encoding="utf-8"?> |
---|
2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
---|
3 | android:layout_width="match_parent" |
---|
4 | android:layout_height="match_parent" |
---|
5 | android:orientation="vertical" > |
---|
6 | |
---|
7 | <ImageView |
---|
8 | android:id="@+id/imageViewStatus" |
---|
9 | android:layout_width="match_parent" |
---|
10 | android:layout_height="150dp" |
---|
11 | android:contentDescription="@string/image_description_status" |
---|
12 | android:src="@+raw/status_default" /> |
---|
13 | |
---|
14 | <TextView |
---|
15 | android:id="@+id/textViewLabelAttention" |
---|
16 | style="@android:style/TextAppearance.Small" |
---|
17 | android:layout_width="wrap_content" |
---|
18 | android:layout_height="wrap_content" |
---|
19 | android:paddingLeft="@dimen/padding_medium" |
---|
20 | android:text="@string/label_attention" /> |
---|
21 | |
---|
22 | <ProgressBar |
---|
23 | android:id="@+id/progressBarAttention" |
---|
24 | style="?android:attr/progressBarStyleHorizontal" |
---|
25 | android:layout_width="match_parent" |
---|
26 | android:layout_height="25dip" |
---|
27 | android:paddingLeft="@dimen/padding_large" |
---|
28 | android:paddingRight="@dimen/padding_large" /> |
---|
29 | |
---|
30 | <!-- |
---|
31 | <SeekBar |
---|
32 | android:id="@+id/seekBarAttention" |
---|
33 | android:layout_width="match_parent" |
---|
34 | android:layout_height="wrap_content" |
---|
35 | android:max="100" |
---|
36 | android:progress="72" |
---|
37 | android:progressDrawable="@xml/progress_drawable" |
---|
38 | android:thumb="@xml/thumb_drawable" /> |
---|
39 | --> |
---|
40 | |
---|
41 | <SeekBar |
---|
42 | android:id="@+id/seekBarAttention" |
---|
43 | android:layout_width="match_parent" |
---|
44 | android:layout_height="wrap_content" |
---|
45 | android:max="100" |
---|
46 | android:progress="72" /> |
---|
47 | |
---|
48 | <TextView |
---|
49 | android:id="@+id/textViewLabelMeditation" |
---|
50 | style="@android:style/TextAppearance.Small" |
---|
51 | android:layout_width="wrap_content" |
---|
52 | android:layout_height="wrap_content" |
---|
53 | android:paddingLeft="@dimen/padding_medium" |
---|
54 | android:text="@string/label_meditation" /> |
---|
55 | |
---|
56 | <ProgressBar |
---|
57 | android:id="@+id/progressBarMeditation" |
---|
58 | style="?android:attr/progressBarStyleHorizontal" |
---|
59 | android:layout_width="match_parent" |
---|
60 | android:layout_height="25dip" |
---|
61 | android:paddingLeft="@dimen/padding_large" |
---|
62 | android:paddingRight="@dimen/padding_large" /> |
---|
63 | |
---|
64 | <!-- |
---|
65 | <SeekBar |
---|
66 | android:id="@+id/seekBarMeditation" |
---|
67 | android:layout_width="match_parent" |
---|
68 | android:layout_height="wrap_content" |
---|
69 | android:max="100" |
---|
70 | android:progress="0" |
---|
71 | android:progressDrawable="@xml/progress_drawable" |
---|
72 | android:thumb="@xml/thumb_drawable" /> |
---|
73 | --> |
---|
74 | |
---|
75 | <SeekBar |
---|
76 | android:id="@+id/seekBarMeditation" |
---|
77 | android:layout_width="match_parent" |
---|
78 | android:layout_height="wrap_content" |
---|
79 | android:max="100" |
---|
80 | android:progress="0" /> |
---|
81 | |
---|
82 | <TextView |
---|
83 | android:id="@+id/textViewLabelSignal" |
---|
84 | style="@android:style/TextAppearance.Small" |
---|
85 | android:layout_width="wrap_content" |
---|
86 | android:layout_height="wrap_content" |
---|
87 | android:paddingLeft="@dimen/padding_medium" |
---|
88 | android:text="@string/label_signal" /> |
---|
89 | |
---|
90 | <ProgressBar |
---|
91 | android:id="@+id/progressBarSignal" |
---|
92 | style="?android:attr/progressBarStyleHorizontal" |
---|
93 | android:layout_width="match_parent" |
---|
94 | android:layout_height="25dip" |
---|
95 | android:paddingLeft="@dimen/padding_large" |
---|
96 | android:paddingRight="@dimen/padding_large" /> |
---|
97 | |
---|
98 | <TextView |
---|
99 | android:id="@+id/textViewLabelPower" |
---|
100 | style="@android:style/TextAppearance.Small" |
---|
101 | android:layout_width="wrap_content" |
---|
102 | android:layout_height="wrap_content" |
---|
103 | android:paddingLeft="@dimen/padding_medium" |
---|
104 | android:text="@string/label_power" /> |
---|
105 | |
---|
106 | <ProgressBar |
---|
107 | android:id="@+id/progressBarPower" |
---|
108 | style="?android:attr/progressBarStyleHorizontal" |
---|
109 | android:layout_width="match_parent" |
---|
110 | android:layout_height="25dip" |
---|
111 | android:paddingLeft="@dimen/padding_large" |
---|
112 | android:paddingRight="@dimen/padding_large" /> |
---|
113 | |
---|
114 | <!-- |
---|
115 | <View |
---|
116 | android:layout_width="match_parent" |
---|
117 | android:layout_height="10dp" > |
---|
118 | </View> |
---|
119 | --> |
---|
120 | |
---|
121 | <LinearLayout |
---|
122 | android:id="@+id/layoutControl" |
---|
123 | android:layout_width="match_parent" |
---|
124 | android:layout_height="wrap_content" |
---|
125 | android:gravity="center" |
---|
126 | android:orientation="horizontal" > |
---|
127 | |
---|
128 | <View |
---|
129 | android:layout_width="5dp" |
---|
130 | android:layout_height="0dp" > |
---|
131 | </View> |
---|
132 | |
---|
133 | <Button |
---|
134 | android:id="@+id/buttonConnect" |
---|
135 | style="@android:style/TextAppearance.Small" |
---|
136 | android:layout_width="wrap_content" |
---|
137 | android:layout_height="wrap_content" |
---|
138 | android:text="@string/button_connect" /> |
---|
139 | |
---|
140 | <!-- |
---|
141 | <Button |
---|
142 | android:id="@+id/buttonConnectServer" |
---|
143 | style="@android:style/TextAppearance.Small" |
---|
144 | android:layout_width="wrap_content" |
---|
145 | android:layout_height="wrap_content" |
---|
146 | android:onClick="connectServer" |
---|
147 | android:text="@string/button_connect_server" /> |
---|
148 | --> |
---|
149 | |
---|
150 | <Button |
---|
151 | android:id="@+id/buttonTestFly" |
---|
152 | style="@android:style/TextAppearance.Small" |
---|
153 | android:layout_width="wrap_content" |
---|
154 | android:layout_height="wrap_content" |
---|
155 | android:onClick="demoMode" |
---|
156 | android:text="@string/button_test_fly" /> |
---|
157 | |
---|
158 | <Button |
---|
159 | android:id="@+id/buttonStopTest" |
---|
160 | style="@android:style/TextAppearance.Small" |
---|
161 | android:layout_width="wrap_content" |
---|
162 | android:layout_height="wrap_content" |
---|
163 | android:onClick="demoStop" |
---|
164 | android:text="@string/button_stop_test" /> |
---|
165 | </LinearLayout> |
---|
166 | |
---|
167 | <LinearLayout |
---|
168 | android:id="@+id/layoutScore" |
---|
169 | android:layout_width="wrap_content" |
---|
170 | android:layout_height="wrap_content" |
---|
171 | android:layout_gravity="center" |
---|
172 | android:gravity="center" |
---|
173 | android:orientation="horizontal" > |
---|
174 | |
---|
175 | <TextView |
---|
176 | android:id="@+id/textViewLabelScore" |
---|
177 | android:layout_width="wrap_content" |
---|
178 | android:layout_height="wrap_content" |
---|
179 | android:paddingLeft="@dimen/padding_medium" |
---|
180 | android:text="@string/textview_label_score" /> |
---|
181 | |
---|
182 | <TextView |
---|
183 | android:id="@+id/textViewScore" |
---|
184 | android:layout_width="wrap_content" |
---|
185 | android:layout_height="wrap_content" |
---|
186 | android:paddingLeft="@dimen/padding_medium" |
---|
187 | android:text="@string/textview_score" /> |
---|
188 | |
---|
189 | <View |
---|
190 | android:id="@+id/viewSpaceScoreLast" |
---|
191 | android:layout_width="25dp" |
---|
192 | android:layout_height="0dp" > |
---|
193 | </View> |
---|
194 | |
---|
195 | <TextView |
---|
196 | android:id="@+id/textViewLabelLastScore" |
---|
197 | android:layout_width="wrap_content" |
---|
198 | android:layout_height="wrap_content" |
---|
199 | android:paddingLeft="@dimen/padding_medium" |
---|
200 | android:text="@string/textview_label_last_score" /> |
---|
201 | |
---|
202 | <TextView |
---|
203 | android:id="@+id/textViewLastScore" |
---|
204 | android:layout_width="wrap_content" |
---|
205 | android:layout_height="wrap_content" |
---|
206 | android:paddingLeft="@dimen/padding_medium" |
---|
207 | android:text="@string/textview_last_score" /> |
---|
208 | |
---|
209 | <View |
---|
210 | android:id="@+id/viewSpaceScoreHigh" |
---|
211 | android:layout_width="25dp" |
---|
212 | android:layout_height="0dp" > |
---|
213 | </View> |
---|
214 | |
---|
215 | <TextView |
---|
216 | android:id="@+id/textViewLabelHighScore" |
---|
217 | android:layout_width="wrap_content" |
---|
218 | android:layout_height="wrap_content" |
---|
219 | android:paddingLeft="@dimen/padding_medium" |
---|
220 | android:text="@string/textview_label_high_score" /> |
---|
221 | |
---|
222 | <TextView |
---|
223 | android:id="@+id/textViewHighScore" |
---|
224 | android:layout_width="wrap_content" |
---|
225 | android:layout_height="wrap_content" |
---|
226 | android:paddingLeft="@dimen/padding_medium" |
---|
227 | android:text="@string/textview_high_score" /> |
---|
228 | </LinearLayout> |
---|
229 | |
---|
230 | <com.androidplot.xy.XYPlot |
---|
231 | android:id="@+id/eegRawHistoryPlot" |
---|
232 | android:layout_width="fill_parent" |
---|
233 | android:layout_height="fill_parent" |
---|
234 | android:layout_marginLeft="0dp" |
---|
235 | android:layout_marginRight="0dp" |
---|
236 | android:layout_marginTop="0dp" |
---|
237 | android:layout_weight="1" |
---|
238 | title="EEG Raw Wave" /> |
---|
239 | |
---|
240 | </LinearLayout> |
---|