source: orbit/android/res/layout/activity_main.xml @ 1a53973

RawEEGRaw_EEG_PlotServoTab_Interfacepyramid
Last change on this file since 1a53973 was 1a53973, checked in by Steve Castellotti <sc@…>, 7 years ago

android:

  • initial release for Instructable (Chapter 2)

arduino:

  • disabling BlueSMiRF
  • Property mode set to 100644
File size: 4.2 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2
3<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
4    android:layout_width="fill_parent"
5    android:layout_height="fill_parent"
6    android:orientation="vertical" >
7
8    <TextView
9        android:id="@+id/textViewLabelAttention"
10        android:layout_width="wrap_content"
11        android:layout_height="wrap_content"
12        android:text="@string/label_attention"
13        android:textAppearance="?android:attr/textAppearanceLarge" />
14
15    <ProgressBar
16        android:id="@+id/progressBarAttention"
17        style="?android:attr/progressBarStyleHorizontal"
18        android:layout_width="match_parent"
19        android:layout_height="wrap_content" />
20
21    <SeekBar
22        android:id="@+id/seekBarAttention"
23        android:layout_width="match_parent"
24        android:layout_height="wrap_content"
25        android:max="100"
26        android:progress="72"
27        android:progressDrawable="@xml/progress_drawable"
28        android:thumb="@xml/thumb_drawable" />
29
30
31    <TextView
32        android:id="@+id/textViewLabelMeditation"
33        android:layout_width="wrap_content"
34        android:layout_height="wrap_content"
35        android:text="@string/label_meditation"
36        android:textAppearance="?android:attr/textAppearanceLarge" />
37
38    <ProgressBar
39        android:id="@+id/progressBarMeditation"
40        style="?android:attr/progressBarStyleHorizontal"
41        android:layout_width="match_parent"
42        android:layout_height="wrap_content" />
43
44
45    <SeekBar
46        android:id="@+id/seekBarMeditation"
47        android:layout_width="match_parent"
48        android:layout_height="wrap_content"
49        android:max="100"
50        android:progress="0"
51        android:progressDrawable="@xml/progress_drawable"
52        android:thumb="@xml/thumb_drawable" />
53
54    <TextView
55        android:id="@+id/textViewLabelSignal"
56        android:layout_width="wrap_content"
57        android:layout_height="wrap_content"
58        android:text="@string/label_signal"
59        android:textAppearance="?android:attr/textAppearanceLarge" />
60
61    <ProgressBar
62        android:id="@+id/progressBarSignal"
63        style="?android:attr/progressBarStyleHorizontal"
64        android:layout_width="match_parent"
65        android:layout_height="wrap_content" />
66
67    <TextView
68        android:id="@+id/textViewLabelPower"
69        android:layout_width="wrap_content"
70        android:layout_height="wrap_content"
71        android:text="@string/label_power"
72        android:textAppearance="?android:attr/textAppearanceLarge" />
73
74    <ProgressBar
75        android:id="@+id/progressBarPower"
76        style="?android:attr/progressBarStyleHorizontal"
77        android:layout_width="match_parent"
78        android:layout_height="wrap_content" />
79
80    <TextView
81        android:layout_width="fill_parent"
82        android:layout_height="wrap_content"
83        android:text="@string/hello" />
84
85    <ScrollView android:layout_width="fill_parent" android:id="@+id/scrollViewDebugConsole" android:fadeScrollbars="true" android:scrollbars="vertical" android:layout_height="0dip" android:layout_weight="1.00">
86            <TextView android:id="@+id/textViewDebugConsole" android:layout_width="fill_parent" android:text="@string/label_debug_console" android:layout_height="fill_parent"></TextView>
87    </ScrollView>
88
89    <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/button1" android:text="@string/button_connect" android:onClick="connectHeadset"></Button>
90    <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/button2" android:text="@string/button_demo" android:onClick="demoMode"></Button>
91
92</LinearLayout>
93
94
95<!-- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" -->
96<!--     xmlns:tools="http://schemas.android.com/tools" -->
97<!--     android:layout_width="match_parent" -->
98<!--     android:layout_height="match_parent" > -->
99
100<!--     <TextView -->
101<!--         android:layout_width="wrap_content" -->
102<!--         android:layout_height="wrap_content" -->
103<!--         android:layout_centerHorizontal="true" -->
104<!--         android:layout_centerVertical="true" -->
105<!--         android:text="@string/hello_world" -->
106<!--         tools:context=".MainActivity" /> -->
107
108<!-- </RelativeLayout> -->
Note: See TracBrowser for help on using the repository browser.