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 | <View |
---|
115 | android:layout_width="match_parent" |
---|
116 | android:layout_height="10dp" > |
---|
117 | </View> |
---|
118 | |
---|
119 | <LinearLayout |
---|
120 | android:id="@+id/layoutControl" |
---|
121 | android:layout_width="match_parent" |
---|
122 | android:layout_height="wrap_content" |
---|
123 | android:gravity="center" |
---|
124 | android:orientation="horizontal" > |
---|
125 | |
---|
126 | <View |
---|
127 | android:layout_width="5dp" |
---|
128 | android:layout_height="0dp" > |
---|
129 | </View> |
---|
130 | |
---|
131 | <Button |
---|
132 | android:id="@+id/buttonConnect" |
---|
133 | style="@android:style/TextAppearance.Small" |
---|
134 | android:layout_width="wrap_content" |
---|
135 | android:layout_height="wrap_content" |
---|
136 | android:onClick="connectHeadset" |
---|
137 | android:text="@string/button_connect" /> |
---|
138 | |
---|
139 | <!-- |
---|
140 | <Button |
---|
141 | android:id="@+id/buttonConnectServer" |
---|
142 | style="@android:style/TextAppearance.Small" |
---|
143 | android:layout_width="wrap_content" |
---|
144 | android:layout_height="wrap_content" |
---|
145 | android:onClick="connectServer" |
---|
146 | android:text="@string/button_connect_server" /> |
---|
147 | --> |
---|
148 | |
---|
149 | <Button |
---|
150 | android:id="@+id/buttonTestFly" |
---|
151 | style="@android:style/TextAppearance.Small" |
---|
152 | android:layout_width="wrap_content" |
---|
153 | android:layout_height="wrap_content" |
---|
154 | android:onClick="demoMode" |
---|
155 | android:text="@string/button_test_fly" /> |
---|
156 | |
---|
157 | <Button |
---|
158 | android:id="@+id/buttonStopTest" |
---|
159 | style="@android:style/TextAppearance.Small" |
---|
160 | android:layout_width="wrap_content" |
---|
161 | android:layout_height="wrap_content" |
---|
162 | android:onClick="demoStop" |
---|
163 | android:text="@string/button_stop_test" /> |
---|
164 | </LinearLayout> |
---|
165 | |
---|
166 | <com.androidplot.xy.XYPlot |
---|
167 | android:id="@+id/eegRawHistoryPlot" |
---|
168 | android:layout_width="fill_parent" |
---|
169 | android:layout_height="fill_parent" |
---|
170 | android:layout_marginLeft="0dp" |
---|
171 | android:layout_marginRight="0dp" |
---|
172 | android:layout_marginTop="0dp" |
---|
173 | android:layout_weight="1" |
---|
174 | title="EEG Raw Wave" /> |
---|
175 | |
---|
176 | |
---|
177 | |
---|
178 | </LinearLayout> |
---|