<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    style="@style/MatchParent"
    android:background="@color/albumColorPrimaryBlack"
    android:orientation="vertical">

    <RelativeLayout
        android:id="@+id/sobot_layout_titlebar"
        android:layout_width="match_parent"
        android:layout_height="@dimen/sobot_titlebar_height"
        android:background="@color/albumSheetBottom">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_centerVertical="true"
            android:orientation="horizontal">

            <TextView
                android:id="@+id/sobot_tv_left"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:drawableLeft="@drawable/sobot_icon_back"
                android:drawablePadding="5dp"
                android:gravity="center_vertical"
                android:paddingStart="10dp"
                android:paddingLeft="10dp"
                android:textColor="@color/sobot_color_title_bar_menu_text"
                android:textSize="@dimen/sobot_titlebar_title_size" />

            <LinearLayout
                android:id="@+id/sobot_header_center_ll"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:layout_marginStart="80dp"
                android:layout_marginLeft="80dp"
                android:layout_marginEnd="80dp"
                android:layout_marginRight="80dp"
                android:gravity="center"
                android:orientation="horizontal">

                <TextView
                    android:id="@+id/sobot_text_title_center"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:singleLine="true"
                    android:textColor="@color/sobot_color_title_bar_title"
                    android:textSize="@dimen/sobot_titlebar_title_size"
                    android:textStyle="bold"
                    android:visibility="gone" />
            </LinearLayout>


            <LinearLayout
                android:id="@+id/sobot_tv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:gravity="center_vertical"
                android:orientation="horizontal">

                <CheckBox
                    android:id="@+id/check_box"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginEnd="@dimen/album_dp_10"
                    android:layout_marginRight="@dimen/album_dp_10"
                    android:background="@drawable/sobot_bg_checkbox"
                    android:button="@null"
                    android:textColor="@color/albumFontLight"
                    android:textSize="@dimen/album_sp_16" />
            </LinearLayout>
        </RelativeLayout>
    </RelativeLayout>

    <com.sobot.album.widget.photoview.FixViewPager
        android:id="@+id/view_pager"
        style="@style/MatchParent"
        android:layout_weight="1" />

    <HorizontalScrollView
        android:id="@+id/sobot_hscroll_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/albumSheetBottom"
        android:visibility="gone">

        <LinearLayout
            android:id="@+id/sobot_thumbnail_ll"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:padding="6dp" />
    </HorizontalScrollView>

    <FrameLayout
        style="@style/Album.WrapContent.WidthMatchParent"
        android:layout_alignParentBottom="true">

        <LinearLayout
            android:id="@+id/layout_bottom"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/albumSheetBottom"
            android:gravity="center_vertical"
            android:orientation="horizontal">

            <TextView
                android:id="@+id/tv_duration"
                style="@style/Album.WrapContent"
                android:layout_marginStart="@dimen/album_dp_10"
                android:layout_marginLeft="@dimen/album_dp_10"
                android:drawableStart="@drawable/album_tag_video_white"
                android:drawableLeft="@drawable/album_tag_video_white"
                android:drawablePadding="@dimen/album_dp_4"
                android:gravity="center"
                android:maxLines="1"
                android:textColor="@color/sobot_white"
                android:visibility="gone" />

            <TextView
                android:id="@+id/sobot_tv_select"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:layout_marginStart="@dimen/album_dp_10"
                android:layout_marginLeft="@dimen/album_dp_10"
                android:layout_marginEnd="5dp"
                android:layout_marginRight="5dp"
                android:padding="5dp"
                android:textColor="@color/sobot_white"
                android:textSize="16sp" />

            <View
                android:layout_width="0dp"
                android:layout_height="1dp"
                android:layout_weight="1" />

            <TextView
                android:id="@+id/sobot_tv_add"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="8dp"
                android:layout_marginEnd="15dp"
                android:layout_marginRight="15dp"
                android:layout_marginBottom="8dp"
                android:background="@drawable/sobot_bg_theme_color_4dp"
                android:gravity="center_vertical"
                android:paddingLeft="10dp"
                android:paddingTop="5dp"
                android:paddingRight="10dp"
                android:paddingBottom="5dp"
                android:text="@string/sobot_add_photos"
                android:textColor="@color/sobot_wo_white_color"
                android:textSize="16sp" />

        </LinearLayout>

        <FrameLayout
            android:id="@+id/layout_layer"
            style="@style/Album.MatchParent.SheetBottom"
            android:background="@color/albumSheetLayer"
            android:visibility="gone">

            <TextView
                style="@style/Album.WrapContent"
                android:layout_gravity="center"
                android:text="@string/album_item_unavailable"
                android:textColor="@color/albumFontLight"
                android:textSize="@dimen/album_sp_18" />
        </FrameLayout>
    </FrameLayout>

</LinearLayout>