<?xml version="1.0" encoding="utf-8"?>
<ScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context="com.mobileer.oboetester.EchoActivity"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:fillViewport="true" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:paddingBottom="@dimen/activity_vertical_margin"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        >

        <com.mobileer.oboetester.StreamConfigurationView
            android:id="@+id/inputStreamConfiguration"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:orientation="horizontal" />

        <com.mobileer.oboetester.InputMarginView
            android:id="@+id/input_margin_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center" />

        <com.mobileer.oboetester.StreamConfigurationView
            android:id="@+id/outputStreamConfiguration"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:orientation="horizontal" />

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

            <Button
                android:id="@+id/button_start_echo"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="wrap_content"
                android:onClick="onStartEcho"
                android:text="@string/startAudio" />

            <Button
                android:id="@+id/button_stop_echo"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="wrap_content"
                android:onClick="onStopEcho"
                android:text="@string/stopAudio" />
        </LinearLayout>

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

            <TextView
                android:id="@+id/text_delay_time"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Delay (msec)" />

            <SeekBar
                android:id="@+id/fader_delay_time"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:max="1000"
                android:progress="1000" />
        </LinearLayout>

        <com.mobileer.oboetester.CommunicationDeviceView
            android:id="@+id/comm_device_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:orientation="horizontal" />

        <com.mobileer.oboetester.VolumeBarView
            android:id="@+id/volumeBar0"
            android:layout_marginBottom="4dp"
            android:layout_width="fill_parent"
            android:layout_height="20dp" />

        <com.mobileer.oboetester.VolumeBarView
            android:id="@+id/volumeBar1"
            android:layout_marginBottom="4dp"
            android:layout_width="fill_parent"
            android:layout_height="20dp" />

        <com.mobileer.oboetester.VolumeBarView
            android:id="@+id/volumeBar2"
            android:layout_marginBottom="4dp"
            android:layout_width="fill_parent"
            android:layout_height="20dp" />

        <com.mobileer.oboetester.VolumeBarView
            android:id="@+id/volumeBar3"
            android:layout_marginBottom="4dp"
            android:layout_width="fill_parent"
            android:layout_height="20dp" />

        <TextView
            android:id="@+id/text_status"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:lines="11"
            android:text="@string/echo_instructions"
            android:textSize="14sp"
            android:textStyle="bold" />
≈
    </LinearLayout>

</ScrollView>
