1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
3
|
android:layout_width="fill_parent"
|
4
|
android:layout_height="fill_parent"
|
5
|
android:layout_gravity="fill_horizontal"
|
6
|
android:gravity="fill_horizontal"
|
7
|
android:orientation="vertical" >
|
8
|
|
9
|
<LinearLayout
|
10
|
android:orientation="horizontal"
|
11
|
android:layout_width="match_parent"
|
12
|
android:layout_height="48dp">
|
13
|
|
14
|
<Spinner
|
15
|
android:layout_width="0dp"
|
16
|
android:layout_height="50dp"
|
17
|
android:layout_weight="0.5"
|
18
|
android:id="@+id/dynamicSpinnerDimension"/>
|
19
|
|
20
|
<Spinner
|
21
|
android:layout_width="0dp"
|
22
|
android:layout_height="50dp"
|
23
|
android:layout_weight="0.5"
|
24
|
android:id="@+id/dynamicSpinnerMode"/>
|
25
|
|
26
|
</LinearLayout>
|
27
|
|
28
|
<LinearLayout
|
29
|
android:layout_width="fill_parent"
|
30
|
android:layout_height="wrap_content"
|
31
|
android:layout_gravity="center_vertical"
|
32
|
android:gravity="center|fill_horizontal"
|
33
|
android:orientation="vertical">
|
34
|
|
35
|
<LinearLayout
|
36
|
android:layout_width="fill_parent"
|
37
|
android:layout_height="wrap_content"
|
38
|
android:orientation="horizontal"
|
39
|
android:baselineAligned="false">
|
40
|
|
41
|
<LinearLayout
|
42
|
android:layout_width="wrap_content"
|
43
|
android:layout_height="fill_parent"
|
44
|
android:layout_weight="1"
|
45
|
android:layout_gravity="center_vertical"
|
46
|
android:gravity="center|fill_horizontal"
|
47
|
android:orientation="vertical">
|
48
|
|
49
|
<TextView
|
50
|
android:id="@+id/dynamicTextDuration"
|
51
|
android:layout_width="wrap_content"
|
52
|
android:layout_height="wrap_content"
|
53
|
android:layout_gravity="center_horizontal"
|
54
|
android:text="@string/duration"
|
55
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
56
|
android:textSize="12sp" />
|
57
|
</LinearLayout>
|
58
|
|
59
|
<LinearLayout
|
60
|
android:layout_width="wrap_content"
|
61
|
android:layout_height="fill_parent"
|
62
|
android:layout_weight="1"
|
63
|
android:layout_gravity="center_vertical"
|
64
|
android:gravity="center|fill_horizontal"
|
65
|
android:orientation="vertical">
|
66
|
|
67
|
<TextView
|
68
|
android:id="@+id/dynamicTextCount"
|
69
|
android:layout_width="wrap_content"
|
70
|
android:layout_height="wrap_content"
|
71
|
android:layout_gravity="center_horizontal"
|
72
|
android:text="@string/count"
|
73
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
74
|
android:textSize="12sp" />
|
75
|
</LinearLayout>
|
76
|
|
77
|
<LinearLayout
|
78
|
android:layout_width="wrap_content"
|
79
|
android:layout_height="fill_parent"
|
80
|
android:layout_weight="1"
|
81
|
android:layout_gravity="center_vertical"
|
82
|
android:gravity="center|fill_horizontal"
|
83
|
android:orientation="vertical">
|
84
|
|
85
|
<TextView
|
86
|
android:id="@+id/dynamicTextConvexity"
|
87
|
android:layout_width="wrap_content"
|
88
|
android:layout_height="wrap_content"
|
89
|
android:layout_gravity="center_horizontal"
|
90
|
android:text="@string/convexity"
|
91
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
92
|
android:textSize="12sp" />
|
93
|
</LinearLayout>
|
94
|
</LinearLayout>
|
95
|
|
96
|
<LinearLayout
|
97
|
android:orientation="horizontal"
|
98
|
android:layout_width="match_parent"
|
99
|
android:layout_height="match_parent"
|
100
|
android:layout_weight="15"
|
101
|
android:paddingBottom="5dp">
|
102
|
|
103
|
<SeekBar
|
104
|
android:id="@+id/dynamicSeekDuration"
|
105
|
android:layout_width="match_parent"
|
106
|
android:layout_height="wrap_content"
|
107
|
android:layout_weight="1"
|
108
|
android:paddingLeft="10dp"
|
109
|
android:paddingRight="5dp" />
|
110
|
|
111
|
<SeekBar
|
112
|
android:id="@+id/dynamicSeekCount"
|
113
|
android:layout_width="match_parent"
|
114
|
android:layout_height="wrap_content"
|
115
|
android:layout_weight="1"
|
116
|
android:paddingLeft="5dp"
|
117
|
android:paddingRight="5dp" />
|
118
|
|
119
|
<SeekBar
|
120
|
android:id="@+id/dynamicSeekConvexity"
|
121
|
android:layout_width="match_parent"
|
122
|
android:layout_height="wrap_content"
|
123
|
android:layout_weight="1"
|
124
|
android:paddingLeft="5dp"
|
125
|
android:paddingRight="10dp" />
|
126
|
</LinearLayout>
|
127
|
|
128
|
<TextView
|
129
|
android:id="@+id/dynamicTextNoise"
|
130
|
android:layout_width="wrap_content"
|
131
|
android:layout_height="wrap_content"
|
132
|
android:layout_gravity="center_horizontal"
|
133
|
android:layout_weight="15"
|
134
|
android:text="@string/noise"
|
135
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
136
|
android:textSize="12sp" />
|
137
|
|
138
|
<LinearLayout
|
139
|
android:orientation="horizontal"
|
140
|
android:layout_width="match_parent"
|
141
|
android:layout_height="match_parent"
|
142
|
android:layout_weight="15"
|
143
|
android:paddingBottom="5dp">
|
144
|
|
145
|
<SeekBar
|
146
|
android:id="@+id/dynamicSeekNoise0"
|
147
|
android:layout_width="match_parent"
|
148
|
android:layout_height="wrap_content"
|
149
|
android:layout_weight="1"
|
150
|
android:paddingLeft="10dp"
|
151
|
android:paddingRight="5dp" />
|
152
|
|
153
|
<SeekBar
|
154
|
android:id="@+id/dynamicSeekNoise1"
|
155
|
android:layout_width="match_parent"
|
156
|
android:layout_height="wrap_content"
|
157
|
android:layout_weight="1"
|
158
|
android:paddingLeft="5dp"
|
159
|
android:paddingRight="5dp" />
|
160
|
|
161
|
<SeekBar
|
162
|
android:id="@+id/dynamicSeekNoise2"
|
163
|
android:layout_width="match_parent"
|
164
|
android:layout_height="wrap_content"
|
165
|
android:layout_weight="1"
|
166
|
android:paddingLeft="5dp"
|
167
|
android:paddingRight="5dp" />
|
168
|
|
169
|
<SeekBar
|
170
|
android:id="@+id/dynamicSeekNoise3"
|
171
|
android:layout_width="match_parent"
|
172
|
android:layout_height="wrap_content"
|
173
|
android:layout_weight="1"
|
174
|
android:paddingLeft="5dp"
|
175
|
android:paddingRight="10dp" />
|
176
|
</LinearLayout>
|
177
|
|
178
|
</LinearLayout>
|
179
|
|
180
|
<org.distorted.examples.dynamic.DynamicSurfaceView
|
181
|
android:id="@+id/dynamicSurfaceView"
|
182
|
android:layout_width="fill_parent"
|
183
|
android:layout_height="0dp"
|
184
|
android:layout_weight="0.8" />
|
185
|
|
186
|
<org.distorted.examples.dynamic.DynamicSpeedSurfaceView
|
187
|
android:id="@+id/dynamicSpeedSurfaceView"
|
188
|
android:layout_width="fill_parent"
|
189
|
android:layout_height="0dp"
|
190
|
android:layout_weight="0.2" />
|
191
|
|
192
|
<LinearLayout
|
193
|
android:orientation="horizontal"
|
194
|
android:layout_width="match_parent"
|
195
|
android:layout_height="48dp"
|
196
|
android:paddingTop="5dp">
|
197
|
|
198
|
<Button
|
199
|
android:id="@+id/dynamicButtonStart"
|
200
|
android:layout_width="wrap_content"
|
201
|
android:layout_height="match_parent"
|
202
|
android:layout_weight="0.5"
|
203
|
android:paddingLeft="10dp"
|
204
|
android:paddingRight="10dp"
|
205
|
android:onClick="Start"
|
206
|
android:text="@string/start" />
|
207
|
|
208
|
<Button
|
209
|
android:id="@+id/dynamicButtonReset"
|
210
|
android:layout_width="wrap_content"
|
211
|
android:layout_height="match_parent"
|
212
|
android:layout_weight="0.5"
|
213
|
android:paddingLeft="10dp"
|
214
|
android:paddingRight="10dp"
|
215
|
android:onClick="Reset"
|
216
|
android:text="@string/reset" />
|
217
|
</LinearLayout>
|
218
|
|
219
|
</LinearLayout>
|