<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    android:background="@android:color/transparent"
    tools:context=".zim_manager.local_file_transfer.LocalFileTransferActivity">

  <com.google.android.material.appbar.AppBarLayout
      android:id="@+id/app_bar_local_file_transfer"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent">

    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbar_local_file_transfer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:titleTextColor="#FFFFFF"
        app:title="@string/local_zim_sharing">
    </androidx.appcompat.widget.Toolbar>

  </com.google.android.material.appbar.AppBarLayout>

  <TextView
      android:id="@+id/text_view_your_device"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginLeft="15dp"
      android:layout_marginStart="15dp"
      android:paddingLeft="5dp"
      android:paddingTop="5dp"
      android:paddingRight="5dp"
      android:paddingBottom="1dp"
      android:text="@string/your_device"
      android:textSize="13sp"
      android:textStyle="italic"
      android:background="@android:color/transparent"
      app:layout_constraintHorizontal_bias="0.0"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintTop_toBottomOf="@id/app_bar_local_file_transfer" />

  <TextView
      android:id="@+id/text_view_device_name"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      tools:hint="Device Name"
      android:textIsSelectable="true"
      app:layout_constraintHorizontal_bias="0.0"
      app:layout_constraintTop_toBottomOf="@id/text_view_your_device"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      android:textStyle="bold"
      android:background="@android:color/transparent"
      android:textSize="17sp"
      android:layout_marginLeft="15dp"
      android:layout_marginStart="15dp"
      android:paddingLeft="5dp"
      android:paddingRight="5dp"
      android:paddingBottom="5dp"/>

  <View
      android:id="@+id/view_device_list_boundary"
      android:layout_width="match_parent"
      android:layout_height="2dp"
      android:background="@color/accent"
      app:layout_constraintTop_toBottomOf="@id/text_view_device_name"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      android:layout_marginLeft="5dp"
      android:layout_marginRight="5dp"/>

  <TextView
      android:id="@+id/text_view_available_device"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:text="@string/nearby_devices"
      android:gravity="center"
      android:textSize="16sp"
      app:fontFamily="monospace"
      android:background="@android:color/transparent"
      app:layout_constraintTop_toBottomOf="@id/view_device_list_boundary"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      android:paddingTop="5dp"/>

  <ListView
      android:id="@+id/list_peer_devices"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@android:color/transparent"
      app:layout_constraintTop_toBottomOf="@id/text_view_available_device"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintVertical_bias="0.0"
      android:visibility="invisible"/>

  <TextView
      android:id="@+id/text_view_empty_peer_list"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:text="@string/no_devices_found"
      android:gravity="center"
      android:background="@android:color/transparent"
      android:layout_margin="50dp"
      app:layout_constraintTop_toBottomOf="@id/text_view_available_device"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"/>

  <ProgressBar
      android:id="@+id/progress_bar_searching_peers"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:indeterminate="true"
      android:background="@android:color/transparent"
      android:layout_margin="50dp"
      app:layout_constraintTop_toBottomOf="@id/text_view_available_device"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      android:visibility="gone"/>

  <View
      android:id="@+id/view_file_list_boundary"
      android:layout_width="match_parent"
      android:layout_height="1dp"
      android:background="@color/accent"
      android:layout_marginTop="200dp"
      app:layout_constraintTop_toBottomOf="@id/text_view_available_device"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintBottom_toTopOf="@+id/text_view_files_for_transfer"
      android:layout_marginLeft="5dp"
      android:layout_marginRight="5dp"/>

  <TextView
      android:id="@+id/text_view_files_for_transfer"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:text="@string/files_for_transfer"
      android:textSize="16sp"
      app:fontFamily="monospace"
      android:background="@android:color/transparent"
      android:gravity="center"
      android:paddingTop="10dp"
      app:layout_constraintTop_toBottomOf="@id/view_file_list_boundary"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintBottom_toTopOf="@id/recycler_view_transfer_files"/>

  <androidx.recyclerview.widget.RecyclerView
      android:id="@+id/recycler_view_transfer_files"
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:background="@android:color/transparent"
      app:layout_constraintTop_toBottomOf="@id/text_view_files_for_transfer"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintBottom_toBottomOf="parent"/>

</androidx.constraintlayout.widget.ConstraintLayout>
