<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (c) Kuba Szczodrzyński 2021-4-8.
  -->

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/card"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/bg_rounded_8dp"
    android:foreground="@drawable/bg_rounded_8dp_outline"
    tools:backgroundTint="@color/blue_selected"
    tools:foregroundTint="@color/blue_selected">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="vertical"
            android:padding="10dp">

            <com.mikepenz.iconics.view.IconicsTextView
                android:id="@+id/title"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:ellipsize="end"
                android:maxLines="2"
                android:textSize="16sp"
                tools:text="sprawdzian - Język polski"
                tools:textColor="@color/md_white_1000" />
        </LinearLayout>

        <View
            android:id="@+id/badgeBackground"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_marginTop="-24dp"
            android:layout_marginEnd="-24dp"
            android:layout_marginRight="-24dp"
            android:background="@drawable/bg_rounded_8dp"
            tools:backgroundTint="?android:colorBackground" />
    </LinearLayout>

    <View
        android:id="@+id/badge"
        android:layout_width="10dp"
        android:layout_height="10dp"
        android:layout_gravity="end"
        android:layout_margin="8dp"
        android:background="@drawable/unread_red_circle" />
</FrameLayout>
