<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".activity.LivePreviewDoubleChannelActivity">

    <LinearLayout
        android:weightSum="2"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">
        <LinearLayout
            android:layout_weight="1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">
            <LinearLayout
                android:id="@+id/selector_container_1"
                android:weightSum="3"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">
                <Spinner
                    android:layout_weight="1"
                    android:layout_alignParentLeft="true"
                    android:id="@+id/select_channel_1"
                    android:layout_width="0dp"
                    android:layout_height="40dp"
                    android:paddingLeft="0dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/wp_spinner_bg" />
                <Spinner
                    android:layout_weight="1"
                    android:id="@+id/select_stream_type_1"
                    android:layout_width="0dp"
                    android:layout_height="40dp"
                    android:paddingLeft="0dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/wp_spinner_bg" />
                <Button
                    android:layout_weight="1"
                    android:id="@+id/buttonStartReplay1"
                    android:layout_width="0dp"
                    android:layout_height="40dp"
                    android:text="@string/start_replay"
                    android:layout_marginLeft="5dp"
                    android:layout_marginRight="5dp" />
            </LinearLayout>
            <LinearLayout
                android:id="@+id/linear_multiply_view_1"
                android:layout_below="@+id/selector_container_1"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical"
                android:layout_marginTop="2dp">

                <SurfaceView
                    android:id="@+id/multiply_view_1"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent" />
            </LinearLayout>
        </LinearLayout>
        <LinearLayout
            android:layout_weight="1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:orientation="vertical">
            <LinearLayout
                android:id="@+id/selector_container_2"
                android:layout_above="@+id/linear_multiply_view_2"
                android:weightSum="3"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">
                <Spinner
                    android:layout_weight="1"
                    android:layout_alignParentRight="true"
                    android:id="@+id/select_channel_2"
                    android:layout_width="0dp"
                    android:layout_height="40dp"
                    android:paddingLeft="0dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/wp_spinner_bg" />
                <Spinner
                    android:layout_weight="1"
                    android:layout_alignParentRight="true"
                    android:id="@+id/select_stream_type_2"
                    android:layout_width="0dp"
                    android:layout_height="40dp"
                    android:paddingLeft="0dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/wp_spinner_bg" />
                <Button
                    android:layout_weight="1"
                    android:id="@+id/buttonStartReplay2"
                    android:layout_width="0dp"
                    android:layout_height="40dp"
                    android:layout_marginLeft="5dp"
                    android:layout_marginRight="5dp"
                    android:text="@string/start_replay" />
            </LinearLayout>
            <LinearLayout
                android:layout_below="@+id/selector_container_2"
                android:id="@+id/linear_multiply_view_2"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginTop="2dp">

                <SurfaceView
                    android:id="@+id/multiply_view_2"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent" />
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>

</RelativeLayout>
