xref: /aosp_15_r20/external/oboe/samples/drumthumper/src/main/res/layout-land/drumthumper_activity.xml (revision 05767d913155b055644481607e6fa1e35e2fe72c)
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3    xmlns:app="http://schemas.android.com/apk/res-auto"
4    xmlns:tools="http://schemas.android.com/tools"
5    android:layout_width="match_parent"
6    android:layout_height="wrap_content"
7    android:orientation="vertical"
8    tools:context="com.plausiblesoftware.drumthumper.DrumThumperActivity">
9
10    <LinearLayout
11        android:layout_width="match_parent"
12        android:layout_height="128dp"
13        android:orientation="horizontal">
14
15        <LinearLayout
16            android:layout_width="wrap_content"
17            android:layout_height="128dp"
18            android:layout_weight=".5"
19            android:orientation="vertical">
20
21            <com.plausiblesoftware.drumthumper.TriggerPad
22                android:id="@+id/kickPad"
23                android:layout_width="match_parent"
24                android:layout_height="match_parent"
25                android:layout_weight="1"
26                android:padding="5dp"
27                android:text="Kick" />
28
29            <LinearLayout
30                android:layout_width="match_parent"
31                android:layout_height="wrap_content"
32                android:orientation="vertical"
33                android:id="@+id/kickMixControls">
34                <LinearLayout
35                    android:layout_width="match_parent"
36                    android:layout_height="wrap_content"
37                    android:orientation="horizontal">
38
39                    <TextView
40                        android:layout_width="wrap_content"
41                        android:layout_height="wrap_content"
42                        android:text="P:"/>
43
44                    <SeekBar
45                        android:id="@+id/kickPan"
46                        style="@android:style/Widget.DeviceDefault.SeekBar"
47                        android:layout_width="match_parent"
48                        android:layout_height="20dp"
49                        android:layout_marginTop="5dp"
50                        android:max="200" />
51                </LinearLayout>
52
53                <LinearLayout
54                    android:layout_width="match_parent"
55                    android:layout_height="wrap_content"
56                    android:orientation="horizontal">
57
58                    <TextView
59                        android:layout_width="wrap_content"
60                        android:layout_height="wrap_content"
61                        android:text="G:"/>
62
63                    <SeekBar
64                        android:id="@+id/kickGain"
65                        style="@android:style/Widget.DeviceDefault.SeekBar"
66                        android:layout_width="match_parent"
67                        android:layout_height="20dp"
68                        android:layout_marginTop="5dp"
69                        android:max="200" />
70                </LinearLayout>
71            </LinearLayout>
72        </LinearLayout>
73
74        <LinearLayout
75            android:layout_width="wrap_content"
76            android:layout_height="128dp"
77            android:layout_weight=".5"
78            android:orientation="vertical">
79
80            <com.plausiblesoftware.drumthumper.TriggerPad
81                android:id="@+id/snarePad"
82                android:layout_width="wrap_content"
83                android:layout_height="match_parent"
84                android:layout_weight="1"
85                android:padding="5dp"
86                android:text="Snare" />
87
88            <LinearLayout
89                android:layout_width="match_parent"
90                android:layout_height="wrap_content"
91                android:orientation="vertical"
92                android:id="@+id/snareMixControls">
93                <LinearLayout
94                    android:layout_width="match_parent"
95                    android:layout_height="wrap_content"
96                    android:orientation="horizontal">
97
98                    <TextView
99                        android:layout_width="wrap_content"
100                        android:layout_height="wrap_content"
101                        android:text="P:"/>
102
103                    <SeekBar
104                        android:id="@+id/snarePan"
105                        style="@android:style/Widget.DeviceDefault.SeekBar"
106                        android:layout_width="match_parent"
107                        android:layout_height="20dp"
108                        android:layout_marginTop="5dp"
109                        android:max="200" />
110                </LinearLayout>
111
112                <LinearLayout
113                    android:layout_width="match_parent"
114                    android:layout_height="wrap_content"
115                    android:orientation="horizontal">
116
117                    <TextView
118                        android:layout_width="wrap_content"
119                        android:layout_height="wrap_content"
120                        android:text="G:"/>
121
122                    <SeekBar
123                        android:id="@+id/snareGain"
124                        style="@android:style/Widget.DeviceDefault.SeekBar"
125                        android:layout_width="match_parent"
126                        android:layout_height="20dp"
127                        android:layout_marginTop="5dp"
128                        android:max="200" />
129
130                </LinearLayout>
131            </LinearLayout>
132        </LinearLayout>
133
134        <LinearLayout
135            android:layout_width="wrap_content"
136            android:layout_height="128dp"
137            android:layout_weight=".5"
138            android:orientation="vertical">
139
140            <com.plausiblesoftware.drumthumper.TriggerPad
141                android:id="@+id/hihatOpenPad"
142                android:layout_width="match_parent"
143                android:layout_height="match_parent"
144                android:layout_weight="1"
145                android:padding="5dp"
146                android:text="Open Hat" />
147
148            <LinearLayout
149                android:layout_width="match_parent"
150                android:layout_height="wrap_content"
151                android:orientation="vertical"
152                android:id="@+id/hihatOpenMixControls">
153                <LinearLayout
154                    android:layout_width="match_parent"
155                    android:layout_height="wrap_content"
156                    android:orientation="horizontal">
157
158                    <TextView
159                        android:layout_width="wrap_content"
160                        android:layout_height="wrap_content"
161                        android:text="P:"/>
162
163                    <SeekBar
164                        android:id="@+id/hihatOpenPan"
165                        style="@android:style/Widget.DeviceDefault.SeekBar"
166                        android:layout_width="match_parent"
167                        android:layout_height="20dp"
168                        android:layout_marginTop="5dp"
169                        android:max="200" />
170                </LinearLayout>
171
172                <LinearLayout
173                    android:layout_width="match_parent"
174                    android:layout_height="wrap_content"
175                    android:orientation="horizontal">
176
177                    <TextView
178                        android:layout_width="wrap_content"
179                        android:layout_height="wrap_content"
180                        android:text="G:"/>
181
182                    <SeekBar
183                        android:id="@+id/hihatOpenGain"
184                        style="@android:style/Widget.DeviceDefault.SeekBar"
185                        android:layout_width="match_parent"
186                        android:layout_height="20dp"
187                        android:layout_marginTop="5dp"
188                        android:max="200" />
189                </LinearLayout>
190            </LinearLayout>
191        </LinearLayout>
192
193        <LinearLayout
194            android:layout_width="wrap_content"
195            android:layout_height="128dp"
196            android:layout_weight=".5"
197            android:orientation="vertical">
198
199            <com.plausiblesoftware.drumthumper.TriggerPad
200                android:id="@+id/hihatClosedPad"
201                android:layout_width="match_parent"
202                android:layout_height="match_parent"
203                android:layout_weight="1"
204                android:padding="5dp"
205                android:text="Closed Hat" />
206
207            <LinearLayout
208                android:layout_width="match_parent"
209                android:layout_height="wrap_content"
210                android:orientation="vertical"
211                android:id="@+id/hihatClosedMixControls">
212                <LinearLayout
213                    android:layout_width="match_parent"
214                    android:layout_height="wrap_content"
215                    android:orientation="horizontal">
216
217                    <TextView
218                        android:layout_width="wrap_content"
219                        android:layout_height="wrap_content"
220                        android:text="P:"/>
221
222                    <SeekBar
223                        android:id="@+id/hihatClosedPan"
224                        style="@android:style/Widget.DeviceDefault.SeekBar"
225                        android:layout_width="match_parent"
226                        android:layout_height="20dp"
227                        android:layout_marginTop="5dp"
228                        android:max="200" />
229                </LinearLayout>
230
231                <LinearLayout
232                    android:layout_width="match_parent"
233                    android:layout_height="wrap_content"
234                    android:orientation="horizontal">
235
236                    <TextView
237                        android:layout_width="wrap_content"
238                        android:layout_height="wrap_content"
239                        android:text="G:"/>
240
241                    <SeekBar
242                        android:id="@+id/hihatClosedGain"
243                        style="@android:style/Widget.DeviceDefault.SeekBar"
244                        android:layout_width="match_parent"
245                        android:layout_height="20dp"
246                        android:layout_marginTop="5dp"
247                        android:max="200" />
248                </LinearLayout>
249            </LinearLayout>
250        </LinearLayout>
251    </LinearLayout>
252
253    <LinearLayout
254        android:layout_width="match_parent"
255        android:layout_height="128dp"
256        android:orientation="horizontal">
257
258        <LinearLayout
259            android:layout_width="wrap_content"
260            android:layout_height="128dp"
261            android:layout_weight=".5"
262            android:orientation="vertical">
263
264            <com.plausiblesoftware.drumthumper.TriggerPad
265                android:id="@+id/midTomPad"
266                android:layout_width="match_parent"
267                android:layout_height="match_parent"
268                android:layout_weight="1"
269                android:padding="5dp"
270                android:text="Mid Tom" />
271
272            <LinearLayout
273                android:layout_width="match_parent"
274                android:layout_height="wrap_content"
275                android:orientation="vertical"
276                android:id="@+id/midTomMixControls">
277                <LinearLayout
278                    android:layout_width="match_parent"
279                    android:layout_height="wrap_content"
280                    android:orientation="horizontal">
281
282                    <TextView
283                        android:layout_width="wrap_content"
284                        android:layout_height="wrap_content"
285                        android:text="P:"/>
286
287                    <SeekBar
288                        android:id="@+id/midTomPan"
289                        style="@android:style/Widget.DeviceDefault.SeekBar"
290                        android:layout_width="match_parent"
291                        android:layout_height="20dp"
292                        android:layout_marginTop="5dp"
293                        android:max="200" />
294                </LinearLayout>
295
296                <LinearLayout
297                    android:layout_width="match_parent"
298                    android:layout_height="wrap_content"
299                    android:orientation="horizontal">
300
301                    <TextView
302                        android:layout_width="wrap_content"
303                        android:layout_height="wrap_content"
304                        android:text="G:"/>
305
306                    <SeekBar
307                        android:id="@+id/midTomGain"
308                        style="@android:style/Widget.DeviceDefault.SeekBar"
309                        android:layout_width="match_parent"
310                        android:layout_height="20dp"
311                        android:layout_marginTop="5dp"
312                        android:max="200" />
313                </LinearLayout>
314            </LinearLayout>
315        </LinearLayout>
316
317        <LinearLayout
318            android:layout_width="wrap_content"
319            android:layout_height="128dp"
320            android:layout_weight=".5"
321            android:orientation="vertical">
322
323            <com.plausiblesoftware.drumthumper.TriggerPad
324                android:id="@+id/lowTomPad"
325                android:layout_width="match_parent"
326                android:layout_height="match_parent"
327                android:layout_weight="1"
328                android:padding="5dp"
329                android:text="Low Tom" />
330
331            <LinearLayout
332                android:layout_width="match_parent"
333                android:layout_height="wrap_content"
334                android:orientation="vertical"
335                android:id="@+id/lowTomMixControls">
336                <LinearLayout
337                    android:layout_width="match_parent"
338                    android:layout_height="wrap_content"
339                    android:orientation="horizontal">
340
341                    <TextView
342                        android:layout_width="wrap_content"
343                        android:layout_height="wrap_content"
344                        android:text="P:"/>
345
346                    <SeekBar
347                        android:id="@+id/lowTomPan"
348                        style="@android:style/Widget.DeviceDefault.SeekBar"
349                        android:layout_width="match_parent"
350                        android:layout_height="20dp"
351                        android:layout_marginTop="5dp"
352                        android:max="200" />
353                </LinearLayout>
354
355                <LinearLayout
356                    android:layout_width="match_parent"
357                    android:layout_height="wrap_content"
358                    android:orientation="horizontal">
359
360                    <TextView
361                        android:layout_width="wrap_content"
362                        android:layout_height="wrap_content"
363                        android:text="G:"/>
364
365                    <SeekBar
366                        android:id="@+id/lowTomGain"
367                        style="@android:style/Widget.DeviceDefault.SeekBar"
368                        android:layout_width="match_parent"
369                        android:layout_height="20dp"
370                        android:layout_marginTop="5dp"
371                        android:max="200" />
372                </LinearLayout>
373            </LinearLayout>
374        </LinearLayout>
375
376        <LinearLayout
377            android:layout_width="wrap_content"
378            android:layout_height="128dp"
379            android:layout_weight=".5"
380            android:orientation="vertical">
381
382            <com.plausiblesoftware.drumthumper.TriggerPad
383                android:id="@+id/ridePad"
384                android:layout_width="match_parent"
385                android:layout_height="match_parent"
386                android:layout_weight="1"
387                android:padding="5dp"
388                android:text="Ride" />
389
390            <LinearLayout
391                android:layout_width="match_parent"
392                android:layout_height="wrap_content"
393                android:orientation="vertical"
394                android:id="@+id/rideMixControls">
395                <LinearLayout
396                    android:layout_width="match_parent"
397                    android:layout_height="wrap_content"
398                    android:orientation="horizontal">
399
400                    <TextView
401                        android:layout_width="wrap_content"
402                        android:layout_height="wrap_content"
403                        android:text="P:"/>
404
405                    <SeekBar
406                        android:id="@+id/ridePan"
407                        style="@android:style/Widget.DeviceDefault.SeekBar"
408                        android:layout_width="match_parent"
409                        android:layout_height="20dp"
410                        android:layout_marginTop="5dp"
411                        android:max="200" />
412                </LinearLayout>
413
414                <LinearLayout
415                    android:layout_width="match_parent"
416                    android:layout_height="wrap_content"
417                    android:orientation="horizontal">
418
419                    <TextView
420                        android:layout_width="wrap_content"
421                        android:layout_height="wrap_content"
422                        android:text="G:"/>
423
424                    <SeekBar
425                        android:id="@+id/rideGain"
426                        style="@android:style/Widget.DeviceDefault.SeekBar"
427                        android:layout_width="match_parent"
428                        android:layout_height="20dp"
429                        android:layout_marginTop="5dp"
430                        android:max="200" />
431                </LinearLayout>
432            </LinearLayout>
433        </LinearLayout>
434
435        <LinearLayout
436            android:layout_width="wrap_content"
437            android:layout_height="128dp"
438            android:layout_weight=".5"
439            android:orientation="vertical">
440
441            <com.plausiblesoftware.drumthumper.TriggerPad
442                android:id="@+id/crashPad"
443                android:layout_width="match_parent"
444                android:layout_height="match_parent"
445                android:layout_weight="1"
446                android:padding="5dp"
447                android:text="Crash" />
448
449            <LinearLayout
450                android:layout_width="match_parent"
451                android:layout_height="wrap_content"
452                android:orientation="vertical"
453                android:id="@+id/crashMixControls">
454                <LinearLayout
455                    android:layout_width="match_parent"
456                    android:layout_height="wrap_content"
457                    android:orientation="horizontal">
458
459                    <TextView
460                        android:layout_width="wrap_content"
461                        android:layout_height="wrap_content"
462                        android:text="P:"/>
463
464                    <SeekBar
465                        android:id="@+id/crashPan"
466                        style="@android:style/Widget.DeviceDefault.SeekBar"
467                        android:layout_width="match_parent"
468                        android:layout_height="20dp"
469                        android:layout_marginTop="5dp"
470                        android:max="200" />
471                </LinearLayout>
472
473                <LinearLayout
474                    android:layout_width="match_parent"
475                    android:layout_height="wrap_content"
476                    android:orientation="horizontal">
477
478                    <TextView
479                        android:layout_width="wrap_content"
480                        android:layout_height="wrap_content"
481                        android:text="G:"/>
482
483                    <SeekBar
484                        android:id="@+id/crashGain"
485                        style="@android:style/Widget.DeviceDefault.SeekBar"
486                        android:layout_width="match_parent"
487                        android:layout_height="20dp"
488                        android:layout_marginTop="5dp"
489                        android:max="200" />
490                </LinearLayout>
491            </LinearLayout>
492        </LinearLayout>
493    </LinearLayout>
494    <Button
495        android:layout_width="match_parent"
496        android:layout_height="wrap_content"
497        android:text="Hide/Show Mix Controls"
498        android:id="@+id/mixCtrlBtn"/>
499</LinearLayout>
500