<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/rl_root_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <cn.finalteam.rxgalleryfinal.ui.widget.RecyclerViewFinal
        android:id="@+id/rv_media"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:cacheColorHint="#00000000" />

    <RelativeLayout
        android:id="@+id/rl_bottom_bar"
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:layout_alignParentBottom="true"
        android:background="#EF2B2C30"
        android:clickable="true"
        android:gravity="center_vertical">

        <TextView
            android:id="@+id/tv_folder_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:drawablePadding="3dp"
            android:drawableRight="@drawable/gallery_ic_corner_selector"
            android:gravity="center_vertical"
            android:paddingBottom="12dp"
            android:paddingLeft="15dp"
            android:paddingTop="12dp"
            android:text="@string/gallery_all_image"
            android:textColor="@color/gallery_text_color_selector"
            android:textSize="14sp" />

        <TextView
            android:id="@+id/tv_preview"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:clickable="false"
            android:gravity="center_vertical"
            android:paddingBottom="12dp"
            android:paddingLeft="15dp"
            android:paddingRight="15dp"
            android:paddingTop="12dp"
            android:text="@string/gallery_preview_title"
            android:textColor="@color/gallery_text_color_selector"
            android:textSize="14sp" />

        <View
            android:id="@+id/tv_preview_vr"
            android:layout_width="1dp"
            android:layout_height="28dp"
            android:layout_centerVertical="true"
            android:layout_toLeftOf="@id/tv_preview"
            android:background="#1F1F1F" />

    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/rl_bucket_overview"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@id/rl_bottom_bar"
        android:background="@color/gallery_media_grid_block_color"
        android:clickable="true"
        android:paddingTop="?actionBarSize"
        android:visibility="gone">

        <android.support.v7.widget.RecyclerView
            android:id="@+id/rv_bucket"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@color/gallery_bucket_list_item_normal_color" />
    </RelativeLayout>

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

        <ProgressBar
            style="@style/Widget.AppCompat.ProgressBar"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

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

</RelativeLayout>