-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.xml
121 lines (117 loc) · 4.15 KB
/
main.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1"
>
<TextView
android:id="@+id/result"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="x is: -0.000001 / y is: -0.000001 / z is: -0.000001"
/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ToggleButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textOn="Bass"
android:textOff="Bass"
android:id="@+id/buttonBass"
android:checked="false" />
<ToggleButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Mnt Tom"
android:textOn="Mnt Tom"
android:textOff="Mnt Tom"
android:id="@+id/buttonMounted"
android:checked="false" />
<ToggleButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Flr Tom"
android:textOn="Flr Tom"
android:textOff="Flr Tom"
android:id="@+id/buttonFloor"
android:checked="false" />
<ToggleButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textOn="Snare"
android:textOff="Snare"
android:id="@+id/buttonSnare"
android:checked="false" />
</LinearLayout>
<com.github.mikephil.charting.charts.LineChart
android:id="@+id/chart"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5"/>
<com.github.mikephil.charting.charts.BarChart
android:id="@+id/chartfft"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ToggleButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textOn="Graph"
android:textOff="Graph"
android:id="@+id/buttonGraph"
android:checked="true" />
<ToggleButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textOn="Learning"
android:textOff="Learn"
android:id="@+id/LearnGraph"
android:checked="false"
android:onClick="trainingTime"/>
<ToggleButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textOn="reset"
android:textOff="reset"
android:id="@+id/reset"
android:checked="false"
android:onClick="reset"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="MLP"
android:id="@+id/buttonML"
android:onClick="MLButtonClick"/>
</LinearLayout>
<TextView
android:id="@+id/bassCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Bass: "
/>
<TextView
android:id="@+id/mntCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Mount: "
/>
<TextView
android:id="@+id/flrCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Floor: "
/>
<TextView
android:id="@+id/snareCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Snare: "
/>
</LinearLayout>