<?xml version="1.0" encoding="utf-8"?>

<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/coordinator"
    android:background="@color/windowBackground"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <!--<ProgressBar-->
    <!--android:id="@+id/progress_bar"-->
    <!--android:layout_width="@dimen/chat_progress_bar_size"-->
    <!--android:layout_height="@dimen/chat_progress_bar_size"-->
    <!--android:layout_gravity="center"-->
    <!--android:visibility="gone" />-->

    <include
        android:id="@+id/layout_no_conversations"
        layout="@layout/layout_no_conversations"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone"
        app:layout_behavior="@string/appbar_scrolling_view_behavior"></include>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        app:layout_behavior="@string/appbar_scrolling_view_behavior">

        <LinearLayout
            android:id="@+id/subheader"
            android:visibility="gone"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <TextView
                android:id="@+id/groups"
                style="@style/TextAppearance.AppCompat.Medium"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:padding="@dimen/chat_padding_small"
                android:text="@string/fragment_conversation_list_my_group_label"
                android:textColor="@color/colorPrimary" />

            <!-- separator-->
            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:background="@color/grey_400"></View>

        </LinearLayout>

        <android.support.v7.widget.RecyclerView
            android:id="@+id/conversations_list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scrollbars="vertical" />

    </LinearLayout>

    <android.support.design.widget.FloatingActionButton
        android:id="@+id/button_new_conversation"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|end|right"
        android:layout_marginBottom="@dimen/chat_margin_normal"
        android:layout_marginRight="@dimen/chat_margin_normal"
        android:clickable="true"
        app:backgroundTint="@color/colorAccent"
        app:srcCompat="@drawable/ic_chat_white_48dp" />
</android.support.design.widget.CoordinatorLayout>