<?xml version="1.0" encoding="utf-8"?><!--
  Nextcloud Android client application

  Copyright (C) 2017 Tobias Kaminsky
  Copyright (C) 2017 Nextcloud.

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  License as published by the Free Software Foundation; either
  version 3 of the License, or any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  GNU AFFERO GENERAL PUBLIC LICENSE for more details.

  You should have received a copy of the GNU Affero General Public
  License along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:tools="http://schemas.android.com/tools"
    android:animateLayoutChanges="true"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/contactlist_recyclerview"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:choiceMode="multipleChoice"
            tools:listitem="@layout/contactlist_list_item" />

        <LinearLayout
            android:id="@+id/contactlist_restore_selected_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/bg_default"
            android:orientation="vertical"
            android:visibility="gone">

            <ImageView
                android:layout_width="match_parent"
                android:layout_height="@dimen/uploader_list_separator_height"
                android:src="@drawable/uploader_list_separator"
                android:contentDescription="@null"/>

            <com.google.android.material.button.MaterialButton
                android:id="@+id/contactlist_restore_selected"
                style="@style/Button.Borderless"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/contaclist_restore_selected" />

        </LinearLayout>
    </LinearLayout>

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

        <include layout="@layout/contactlist_list_item_shimmer" />
        <include layout="@layout/contactlist_list_item_shimmer" />
        <include layout="@layout/contactlist_list_item_shimmer" />
        <include layout="@layout/contactlist_list_item_shimmer" />
        <include layout="@layout/contactlist_list_item_shimmer" />
        <include layout="@layout/contactlist_list_item_shimmer" />
        <include layout="@layout/contactlist_list_item_shimmer" />
        <include layout="@layout/contactlist_list_item_shimmer" />
        <include layout="@layout/contactlist_list_item_shimmer" />
        <include layout="@layout/contactlist_list_item_shimmer" />
    </LinearLayout>
</RelativeLayout>
