1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<LinearLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="wrap_content"
20    android:orientation="vertical"
21    style="@style/RootLayoutPadding">
22
23    <ScrollView
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"
26        android:id="@+id/scrollView"
27    >
28
29        <LinearLayout
30            android:layout_width="match_parent"
31            android:layout_height="wrap_content"
32            android:orientation="vertical"
33        >
34
35            <TextView
36                android:layout_width="match_parent"
37                android:layout_height="wrap_content"
38                android:scrollbars="vertical"
39                android:gravity="bottom"
40                android:id="@+id/audio_general_headset_port_exists"
41                android:text="@string/audio_general_headset_port_exists" />
42
43            <LinearLayout
44                android:layout_width="match_parent"
45                android:layout_height="wrap_content"
46                android:orientation="horizontal"
47            >
48
49                <Button
50                    android:layout_width="wrap_content"
51                    android:layout_height="wrap_content"
52                    android:id="@+id/audio_general_headset_no"
53                    android:text="@string/audio_general_headset_no"
54                    android:nextFocusForward="@+id/audio_general_headset_yes"
55                    android:nextFocusDown="@+id/audio_loopback_plug_ready_btn"
56                    android:nextFocusRight="@+id/audio_general_headset_yes" />
57
58                <Button
59                    android:layout_width="wrap_content"
60                    android:layout_height="wrap_content"
61                    android:id="@+id/audio_general_headset_yes"
62                    android:text="@string/audio_general_headset_yes"
63                    android:nextFocusForward="@+id/audio_loopback_plug_ready_btn"
64                    android:nextFocusDown="@+id/audio_loopback_plug_ready_btn"
65                    android:nextFocusLeft="@+id/audio_general_headset_no"
66                    android:nextFocusRight="@+id/audio_loopback_plug_ready_btn" />
67
68            </LinearLayout>
69
70            <LinearLayout
71                android:layout_width="wrap_content"
72                android:layout_height="wrap_content"
73                android:orientation="vertical"
74                android:id="@+id/audio_loopback_headset_port"
75            >
76
77                <TextView
78                    android:layout_width="match_parent"
79                    android:layout_height="wrap_content"
80                    android:scrollbars="vertical"
81                    android:gravity="bottom"
82                    android:id="@+id/info_text"
83                    android:text="@string/audio_loopback_instructions" />
84
85                <Button
86                    android:layout_width="match_parent"
87                    android:layout_height="wrap_content"
88                    android:id="@+id/audio_loopback_plug_ready_btn"
89                    android:text="@string/audio_loopback_plug_ready_btn"
90                    android:nextFocusForward="@+id/audio_loopback_level_seekbar"
91                    android:nextFocusUp="@+id/audio_general_headset_yes"
92                    android:nextFocusDown="@+id/audio_loopback_level_seekbar"
93                    android:nextFocusLeft="@+id/audio_general_headset_yes"
94                    android:nextFocusRight="@+id/audio_loopback_level_seekbar" />
95
96                <LinearLayout
97                    android:orientation="vertical"
98                    android:layout_width="match_parent"
99                    android:layout_height="match_parent"
100                    android:id="@+id/audio_loopback_layout"
101                >
102
103                    <TextView
104                        android:layout_width="wrap_content"
105                        android:layout_height="wrap_content"
106                        android:text="@string/audio_loopback_instructions2"
107                        android:id="@+id/audio_loopback_instructions2" />
108
109                    <SeekBar
110                        android:layout_width="match_parent"
111                        android:layout_height="wrap_content"
112                        android:id="@+id/audio_loopback_level_seekbar"
113                        android:nextFocusForward="@+id/audio_loopback_test_btn"
114                        android:nextFocusUp="@+id/audio_loopback_plug_ready_btn"
115                        android:nextFocusDown="@+id/audio_loopback_test_btn"
116                        android:nextFocusLeft="@+id/audio_loopback_plug_ready_btn"
117                        android:nextFocusRight="@+id/audio_loopback_test_btn" />
118
119                    <TextView
120                        android:layout_width="wrap_content"
121                        android:layout_height="wrap_content"
122                        android:text="@string/audio_loopback_level_text"
123                        android:id="@+id/audio_loopback_level_text" />
124
125                    <Button
126                        android:layout_width="wrap_content"
127                        android:layout_height="wrap_content"
128                        android:text="@string/audio_loopback_test_btn"
129                        android:id="@+id/audio_loopback_test_btn"
130                        android:nextFocusForward="@+id/pass_button"
131                        android:nextFocusUp="@+id/audio_loopback_level_seekbar"
132                        android:nextFocusDown="@+id/pass_button"
133                        android:nextFocusLeft="@+id/audio_loopback_level_seekbar"
134                        android:nextFocusRight="@+id/pass_button" />
135
136                    <ProgressBar
137                        android:layout_width="wrap_content"
138                        android:layout_height="wrap_content"
139                        android:id="@+id/audio_loopback_progress_bar" />
140
141                    <TextView
142                        android:layout_width="wrap_content"
143                        android:layout_height="wrap_content"
144                        android:text="@string/audio_loopback_results_text"
145                        android:id="@+id/audio_loopback_results_text" />
146                </LinearLayout>
147
148            </LinearLayout>
149            <include layout="@layout/pass_fail_buttons" />
150        </LinearLayout>
151    </ScrollView>
152
153</LinearLayout>
154