<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    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:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <com.google.android.material.card.MaterialCardView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginHorizontal="8dp"
        android:layout_marginVertical="4dp"
        android:background="?selectableItemBackground"
        app:cardCornerRadius="5dp"
        app:cardElevation="4dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:padding="8dp">

            <TextView
                android:id="@+id/teacherAbsenceTime"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textAppearance="@style/NavView.TextView.Helper"
                tools:text="2 września - 5 kwietnia"/>

            <TextView
                android:id="@+id/teacherAbsenceTeacher"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                tools:text="Jan Kowalski"/>

            <TextView
                android:id="@+id/teacherAbsenceName"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textAppearance="@style/NavView.TextView.Helper"
                android:visibility="gone"
                tools:text="wycieczka"
                tools:visibility="visible"/>
        </LinearLayout>
    </com.google.android.material.card.MaterialCardView>
</LinearLayout>
