<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:id="@+id/attendanceItemContainer"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?selectableItemBackground"
    android:paddingStart="12dp"
    android:paddingLeft="12dp"
    android:paddingTop="7dp"
    android:paddingEnd="12dp"
    android:paddingRight="12dp"
    android:paddingBottom="7dp"
    tools:context=".ui.modules.attendance.AttendanceAdapter">

    <LinearLayout
        android:id="@+id/attendanceItemNumberContainer"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:minWidth="40dp"
        android:minHeight="40dp"
        android:gravity="center"
        android:orientation="vertical"
        app:layout_constraintBottom_toBottomOf="@+id/attendanceItemDetailsContainer"
        app:layout_constraintEnd_toStartOf="@+id/attendanceItemDetailsContainer"
        app:layout_constraintHorizontal_bias="0.5"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@+id/attendanceItemDetailsContainer">

        <TextView
            android:id="@+id/attendanceItemNumber"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:includeFontPadding="false"
            android:maxLength="2"
            android:textSize="32sp"
            android:visibility="gone"
            tools:text="5"
            tools:visibility="visible" />

        <com.google.android.material.checkbox.MaterialCheckBox
            android:id="@+id/attendanceItemExcuseCheckbox"
            android:layout_width="32dp"
            android:layout_height="32dp"
            android:text="@null"
            android:visibility="gone" />

        <ImageView
            android:id="@+id/attendanceItemExcuseInfo"
            android:layout_width="32dp"
            android:layout_height="32dp"
            android:visibility="gone"
            app:srcCompat="@drawable/ic_excuse_waiting"
            app:tint="?attr/colorOnSurface"
            tools:ignore="ContentDescription" />
    </LinearLayout>

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/attendanceItemDetailsContainer"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="10dp"
        android:layout_marginEnd="10dp"
        app:layout_constraintEnd_toStartOf="@+id/attendanceItemAlert"
        app:layout_constraintHorizontal_bias="0.5"
        app:layout_constraintStart_toEndOf="@+id/attendanceItemNumberContainer"
        app:layout_constraintTop_toTopOf="parent">

        <TextView
            android:id="@+id/attendanceItemSubject"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:ellipsize="end"
            android:maxLines="1"
            android:textSize="17sp"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:text="Matematyka" />

        <TextView
            android:id="@+id/attendanceItemDescription"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:maxLines="1"
            android:textColor="?android:textColorSecondary"
            android:textSize="12sp"
            app:layout_constraintBottom_toBottomOf="@id/attendanceItemDetailsContainer"
            app:layout_constraintStart_toStartOf="@id/attendanceItemDetailsContainer"
            app:layout_constraintTop_toBottomOf="@id/attendanceItemSubject"
            tools:text="Present" />
    </androidx.constraintlayout.widget.ConstraintLayout>

    <ImageView
        android:id="@+id/attendanceItemAlert"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="@+id/attendanceItemDetailsContainer"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.5"
        app:layout_constraintStart_toEndOf="@+id/attendanceItemDetailsContainer"
        app:layout_constraintTop_toTopOf="@+id/attendanceItemDetailsContainer"
        app:srcCompat="@drawable/ic_all_mark"
        app:tint="?colorPrimary"
        tools:ignore="contentDescription" />
</androidx.constraintlayout.widget.ConstraintLayout>
