<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 The Android Open Source Project Licensed under the
    Apache License, Version 2.0 (the "License"); you may not use this file except
    in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software distributed
    under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
    OR CONDITIONS OF ANY KIND, either express or implied. See the License for
    the specific language governing permissions and limitations under the License. -->
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    style="@style/RootLayoutPadding">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/scrollView">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:scrollbars="vertical"
                android:gravity="bottom"
                android:id="@+id/audio_frequency_unprocessed_defined" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:id="@+id/unprocessed_layout_test_tone"
            >

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:background="?android:colorAccent" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:scrollbars="vertical"
                    android:gravity="bottom"
                    android:text="@string/unprocessed_test_tone_instructions"
                    android:id="@+id/unprocessed_test_tone_instructions" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal">

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:orientation="vertical"
                        android:layout_weight="2">

                        <Button
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:soundEffectsEnabled="false"
                            android:text="@string/unprocessed_test_tone_btn"
                            android:id="@+id/unprocessed_test_tone_btn" />
                        <ProgressBar
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_weight="1"
                            android:id="@+id/unprocessed_test_tone_progress_bar" />

                    </LinearLayout>

                    <View
                        android:layout_width="1dp"
                        android:layout_height="match_parent"
                        android:background="?android:colorAccent" />

                    <LinearLayout
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:orientation="vertical"
                        android:layout_weight="1">
                        <Button
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:soundEffectsEnabled="false"
                            android:text="@string/unprocessed_play"
                            android:id="@+id/unprocessed_play_tone_btn" />
                    </LinearLayout>
                </LinearLayout>
                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/unprocessed_test_tone_result"
                    android:id="@+id/unprocessed_test_tone_result" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:id="@+id/unprocessed_layout_test_noise">

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:background="?android:colorAccent" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:scrollbars="vertical"
                    android:gravity="bottom"
                    android:text="@string/unprocessed_test_noise_instructions"
                    android:id="@+id/unprocessed_test_noise_instructions" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal">

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:orientation="vertical"
                        android:layout_weight="2">

                        <Button
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:soundEffectsEnabled="false"
                            android:text="@string/unprocessed_test_noise_btn"
                            android:id="@+id/unprocessed_test_noise_btn" />
                        <ProgressBar
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_weight="1"
                            android:id="@+id/unprocessed_test_noise_progress_bar" />
                    </LinearLayout>

                    <View
                        android:layout_width="1dp"
                        android:layout_height="match_parent"
                        android:background="?android:colorAccent" />

                    <LinearLayout
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:orientation="vertical"
                        android:layout_weight="1">
                        <Button
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:soundEffectsEnabled="false"
                            android:text="@string/unprocessed_play"
                            android:id="@+id/unprocessed_play_noise_btn" />
                    </LinearLayout>
                </LinearLayout>
                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/unprocessed_test_noise_result"
                    android:id="@+id/unprocessed_test_noise_result" />
            </LinearLayout>

        <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:id="@+id/unprocessed_layout_test_usb_background">

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:background="?android:colorAccent" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:scrollbars="vertical"
                    android:gravity="bottom"
                    android:text="@string/unprocessed_test_usb_background_instructions"
                    android:id="@+id/unprocessed_test_usb_background_instructions" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal">

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:orientation="vertical"
                        android:layout_weight="2">

                        <Button
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:soundEffectsEnabled="false"
                            android:text="@string/unprocessed_test_usb_background_btn"
                            android:id="@+id/unprocessed_test_usb_background_btn" />
                        <ProgressBar
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_weight="1"
                            android:id="@+id/unprocessed_test_usb_background_progress_bar" />
                    </LinearLayout>
                </LinearLayout>
                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/unprocessed_test_usb_background_result"
                    android:id="@+id/unprocessed_test_usb_background_result" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:id="@+id/unprocessed_layout_test_usb_noise">

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:background="?android:colorAccent" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:scrollbars="vertical"
                    android:gravity="bottom"
                    android:text="@string/unprocessed_test_usb_noise_instructions"
                    android:id="@+id/unprocessed_test_usb_noise_instructions" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal">

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:orientation="vertical"
                        android:layout_weight="2">

                        <Button
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:soundEffectsEnabled="false"
                            android:text="@string/unprocessed_test_usb_noise_btn"
                            android:id="@+id/unprocessed_test_usb_noise_btn" />
                        <ProgressBar
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_weight="1"
                            android:id="@+id/unprocessed_test_usb_noise_progress_bar" />
                    </LinearLayout>

                    <View
                        android:layout_width="1dp"
                        android:layout_height="match_parent"
                        android:background="?android:colorAccent" />

                    <LinearLayout
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:orientation="vertical"
                        android:layout_weight="1">
                        <Button
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:soundEffectsEnabled="false"
                            android:text="@string/unprocessed_play"
                            android:id="@+id/unprocessed_play_usb_noise_btn" />
                    </LinearLayout>
                </LinearLayout>
                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/unprocessed_test_usb_noise_result"
                    android:id="@+id/unprocessed_test_usb_noise_result" />
            </LinearLayout>
             <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:background="?android:colorAccent" />

            <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/unprocessed_test_global_result"
                    android:id="@+id/unprocessed_test_global_result" />

            <include layout="@layout/pass_fail_buttons" />
        </LinearLayout>
    </ScrollView>

</LinearLayout>