<?xml version="1.0" encoding="utf-8"?>
<jp.juggler.subwaytooter.view.MyDrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawer_layout"

    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="jp.juggler.subwaytooter.ActMain"
    tools:openDrawer="start">

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

        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:orientation="vertical">

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

                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="center"
                    android:text="@string/column_empty" />

            </LinearLayout>

            <jp.juggler.subwaytooter.view.MyViewPager
                android:id="@+id/viewPager"
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <jp.juggler.subwaytooter.view.TabletModeRecyclerView
                android:id="@+id/rvPager"
                android:layout_width="match_parent"
                android:layout_height="match_parent" />
        </FrameLayout>

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

            <ImageButton
                android:id="@+id/btnMenu"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:contentDescription="@string/menu"
                android:scaleType="fitCenter"
                android:src="@drawable/ic_hamburger" />

            <View
                android:id="@+id/vFooterDivider1"
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:background="?attr/colorImageButton" />

            <HorizontalScrollView
                android:id="@+id/svColumnStrip"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:background="?attr/colorColumnStripBackground"
                android:cacheColorHint="#00000000"
                android:fadingEdge="horizontal"
                android:fadingEdgeLength="20dp"
                android:fillViewport="true"
                android:scrollbars="none">

                <jp.juggler.subwaytooter.view.ColumnStripLinearLayout
                    android:id="@+id/llColumnStrip"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:orientation="horizontal" />
            </HorizontalScrollView>

            <View
                android:id="@+id/vFooterDivider2"
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:background="?attr/colorImageButton" />

            <ImageButton
                android:id="@+id/btnToot"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:contentDescription="@string/toot"
                android:scaleType="fitCenter"
                android:src="@drawable/ic_edit" />
        </LinearLayout>

        <LinearLayout
            android:id="@+id/llQuickTootBar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:baselineAligned="false"
            android:gravity="center_vertical"
            android:orientation="horizontal">

            <ImageButton
                android:id="@+id/btnQuickTootMenu"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:contentDescription="@string/quick_toot_menu"
                android:scaleType="fitCenter" />

            <jp.juggler.subwaytooter.view.MyEditText
                android:id="@+id/etQuickToot"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginStart="6dp"
                android:layout_marginEnd="6dp"
                android:layout_weight="1"
                android:hint="@string/quick_toot_hint"
                android:imeOptions="actionSend"
                android:inputType="text"
                android:scrollbars="vertical" />

            <ImageButton
                android:id="@+id/btnQuickToot"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:contentDescription="@string/post"
                android:scaleType="fitCenter"
                android:src="@drawable/ic_send" />
        </LinearLayout>
    </LinearLayout>

    <com.google.android.material.navigation.NavigationView
        android:id="@+id/nav_view"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_gravity="start" />

</jp.juggler.subwaytooter.view.MyDrawerLayout>
