<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/widget_card"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/widget_single_card_background"
    android:orientation="vertical"
    tools:layout_height="200dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:paddingStart="@dimen/widget_inner_padding_horizontal"
        android:paddingTop="@dimen/widget_inner_padding_vertical"
        android:paddingEnd="@dimen/widget_inner_padding_horizontal">

        <TextView
            android:id="@+id/title"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:paddingBottom="@dimen/spacer_1hx"
            android:textColor="@color/widget_foreground"
            android:textSize="@dimen/widget_font_size_header"
            android:textStyle="bold"
            tools:maxLength="30"
            tools:text="@tools:sample/lorem/random" />

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

            <ImageView
                android:id="@+id/card_due_date_image"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:contentDescription="@null"
                tools:src="@drawable/ic_time_24" />

            <TextView
                android:id="@+id/card_due_date"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:drawablePadding="@dimen/spacer_1hx"
                android:gravity="center"
                android:padding="@dimen/spacer_1hx"
                android:textColor="@color/widget_foreground"
                tools:text="tomorrow" />
        </LinearLayout>
    </LinearLayout>

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:paddingStart="@dimen/widget_inner_padding_horizontal"
        android:paddingEnd="@dimen/widget_inner_padding_horizontal">

        <ListView
            android:id="@+id/description_lv"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginVertical="@dimen/spacer_1hx"
            android:divider="@null"
            tools:listitem="@layout/widget_single_card_content" />
    </FrameLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/spacer_1hx"
        android:gravity="bottom"
        android:paddingStart="@dimen/widget_inner_padding_horizontal"
        android:paddingEnd="@dimen/widget_inner_padding_horizontal"
        android:paddingBottom="@dimen/widget_inner_padding_vertical">

        <ImageView
            android:id="@+id/card_count_comments_image"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@null"
            tools:src="@drawable/ic_comment_24dp" />

        <TextView
            android:id="@+id/card_count_comments"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawablePadding="@dimen/spacer_1hx"
            android:gravity="center_vertical"
            android:padding="@dimen/spacer_1hx"
            android:textColor="@color/widget_foreground"
            tools:text="2" />

        <ImageView
            android:id="@+id/card_count_tasks_image"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@null"
            tools:src="@drawable/ic_check_24dp" />

        <TextView
            android:id="@+id/card_count_tasks"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:padding="@dimen/spacer_1hx"
            android:textColor="@color/widget_foreground"
            tools:text="1/2" />

        <ImageView
            android:id="@+id/card_count_attachments_image"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@null"
            tools:src="@drawable/ic_attach_file_24dp" />

        <TextView
            android:id="@+id/card_count_attachments"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:padding="@dimen/spacer_1hx"
            android:textColor="@color/widget_foreground"
            tools:text="3" />
    </LinearLayout>
</LinearLayout>