blob: c727096a1cf5486520042504055c69bbbec2c56a [file] [log] [blame]
Phil Burk7386a832019-03-21 16:07:27 -07001<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools"
4 android:layout_width="match_parent"
5 android:layout_height="match_parent"
6 android:orientation="vertical"
7 android:paddingBottom="@dimen/activity_vertical_margin"
8 android:paddingLeft="@dimen/activity_horizontal_margin"
9 android:paddingRight="@dimen/activity_horizontal_margin"
10 android:paddingTop="@dimen/activity_vertical_margin"
Phil Burkaad38762019-04-09 12:51:51 -070011 tools:context="com.google.sample.oboe.manualtest.AutoGlitchActivity">
Phil Burk550b3a52019-04-02 17:10:30 -070012
Phil Burk7386a832019-03-21 16:07:27 -070013 <LinearLayout
14 android:layout_width="match_parent"
15 android:layout_height="wrap_content"
16 android:orientation="horizontal">
Phil Burk168b5502019-04-11 08:43:49 -070017 <TextView
18 android:layout_width="wrap_content"
19 android:layout_height="wrap_content"
20 android:text="@string/duration"
21 />
22 <Spinner
23 android:id="@+id/spinner_glitch_duration"
24 android:layout_width="wrap_content"
25 android:layout_height="wrap_content"
26 android:entries="@array/glitch_times"
27 />
28 <TextView
29 android:id="@+id/actualNativeApi"
30 android:layout_width="wrap_content"
31 android:layout_height="wrap_content"
32 android:text="@string/seconds_per_test"
33 />
34 </LinearLayout>
35
36 <LinearLayout
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 android:orientation="horizontal">
Phil Burk7386a832019-03-21 16:07:27 -070040
41 <Button
42 android:id="@+id/button_start"
43 android:layout_width="0dp"
44 android:layout_weight="1"
45 android:layout_height="wrap_content"
46 android:onClick="onStartAudioTest"
47 android:text="@string/startAudio" />
48
49 <Button
50 android:id="@+id/button_stop"
51 android:layout_width="0dp"
52 android:layout_weight="1"
53 android:layout_height="wrap_content"
54 android:onClick="onStopAudioTest"
55 android:text="@string/stopAudio" />
Phil Burk6e827c82019-04-10 20:20:51 -070056
57 <Button
58 android:id="@+id/button_share"
59 android:layout_width="0dp"
60 android:layout_weight="1"
61 android:layout_height="wrap_content"
62 android:onClick="onShareResult"
63 android:text="@string/share" />
Phil Burk7386a832019-03-21 16:07:27 -070064 </LinearLayout>
65
Phil Burk168b5502019-04-11 08:43:49 -070066
Phil Burk7386a832019-03-21 16:07:27 -070067 <TextView
68 android:id="@+id/text_analyzer_result"
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content"
Phil Burk2beb2c72019-09-05 18:51:14 -070071 android:lines="12"
Phil Burk168b5502019-04-11 08:43:49 -070072 android:text="@string/auto_glitch_instructions"
Phil Burk7386a832019-03-21 16:07:27 -070073 android:textSize="18sp"
Phil Burkaad38762019-04-09 12:51:51 -070074 android:textStyle="bold"
75 />
76
77 <TextView
78 android:id="@+id/text_auto_result"
79 android:layout_width="match_parent"
80 android:layout_height="match_parent"
81 android:scrollbars = "vertical"
82 android:gravity="bottom"
Phil Burk168b5502019-04-11 08:43:49 -070083 android:text="@string/log_of_glitch_tests"
Phil Burkaad38762019-04-09 12:51:51 -070084 />
Phil Burk7386a832019-03-21 16:07:27 -070085
86</LinearLayout>