<?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:background="@android:color/transparent"
  android:fitsSystemWindows="true"
  tools:context="org.kiwix.kiwixmobile.localFileTransfer.LocalFileTransferFragment">


  <include layout="@layout/layout_toolbar" />

  <TextView
    android:id="@+id/text_view_your_device"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginStart="15dp"
    android:background="@android:color/transparent"
    android:paddingStart="5dp"
    android:paddingTop="5dp"
    android:paddingEnd="5dp"
    android:paddingBottom="1dp"
    android:text="@string/your_device"
    android:textSize="13sp"
    android:textStyle="italic"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.0"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/toolbar" />

  <TextView
    android:id="@+id/text_view_device_name"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginStart="15dp"
    android:background="@android:color/transparent"
    android:paddingStart="5dp"
    android:paddingEnd="5dp"
    android:paddingBottom="5dp"
    android:textIsSelectable="true"
    android:gravity="start|center"
    android:minHeight="@dimen/material_minimum_height_and_width"
    android:textSize="17sp"
    android:textStyle="bold"
    android:contentDescription="@string/device_name"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.0"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@id/text_view_your_device"
    tools:hint="@string/device_name" />

  <View
    android:id="@+id/view_device_list_boundary"
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:layout_marginStart="5dp"
    android:layout_marginEnd="5dp"
    android:background="@color/dodger_blue"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@id/text_view_device_name" />

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

  <androidx.recyclerview.widget.RecyclerView
    android:id="@+id/list_peer_devices"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@android:color/transparent"
    android:visibility="invisible"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@id/text_view_available_device"
    app:layout_constraintVertical_bias="0.0" />

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

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

  <View
    android:id="@+id/view_file_list_boundary"
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:layout_marginStart="5dp"
    android:layout_marginTop="201dp"
    android:layout_marginEnd="5dp"
    android:background="@color/dodger_blue"
    app:layout_constraintBottom_toTopOf="@+id/text_view_files_for_transfer"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@id/text_view_available_device" />

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

  <androidx.recyclerview.widget.RecyclerView
    tools:listitem="@layout/item_transfer_list"
    android:id="@+id/recycler_view_transfer_files"
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:background="@android:color/transparent"
    android:contentDescription="@string/files_for_transfer"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@id/text_view_files_for_transfer" />

</androidx.constraintlayout.widget.ConstraintLayout>
