<?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"
    android:id="@+id/passes_root"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.google.android.material.card.MaterialCardView
        android:id="@+id/passes_bar"
        style="@style/TopBar"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <com.google.android.material.textview.MaterialTextView
        android:id="@+id/passes_timer"
        style="@style/TimerText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:elevation="4dp"
        android:text="@string/timer_zero"
        android:textSize="40sp"
        app:layout_constraintBottom_toBottomOf="@+id/passes_bar"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="@id/passes_bar"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageButton
        android:id="@+id/passes_refresh"
        android:layout_width="64dp"
        android:layout_height="48dp"
        android:layout_marginEnd="4dp"
        android:backgroundTint="@color/greyDark"
        android:contentDescription="@string/placeholder"
        android:elevation="4dp"
        android:src="@drawable/ic_refresh"
        app:layout_constraintEnd_toEndOf="@+id/passes_bar"
        app:layout_constraintTop_toTopOf="@+id/passes_bar" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/passes_recycler"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:padding="2dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/passes_bar">

    </androidx.recyclerview.widget.RecyclerView>

    <ProgressBar
        android:id="@+id/passes_progress"
        style="@android:style/Widget.DeviceDefault.Light.ProgressBar.Large"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:visibility="invisible"
        app:layout_constraintBottom_toBottomOf="@+id/passes_recycler"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/passes_bar" />

    <com.google.android.material.textview.MaterialTextView
        android:id="@+id/passes_error"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/passes_error"
        android:textSize="20sp"
        android:visibility="invisible"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/passes_bar" />

</androidx.constraintlayout.widget.ConstraintLayout>
