<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
    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:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_margin="@dimen/spacing_micro"
    android:foreground="?android:selectableItemBackground"
    app:cardBackgroundColor="?card_background">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="@dimen/spacing_normal"
        android:layout_marginStart="@dimen/spacing_xs_large"
        android:layout_marginTop="@dimen/spacing_normal"
        android:orientation="vertical">

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

            <com.fastaccess.ui.widgets.FontTextView
                android:id="@+id/name"
                style="@style/TextAppearance.AppCompat.Subhead"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginEnd="@dimen/spacing_normal"
                android:layout_weight="1"
                android:ellipsize="end"
                android:maxLines="2"
                android:textColor="?android:textColorPrimary"
                tools:text="When one acquires"/>

            <com.fastaccess.ui.widgets.ForegroundImageView
                android:id="@+id/toggle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:src="@drawable/ic_arrow_drop_down"/>

            <com.fastaccess.ui.widgets.ForegroundImageView
                android:id="@+id/open"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="?selectableItemBackgroundBorderless"
                android:padding="@dimen/spacing_normal"
                android:src="@drawable/ic_overflow"/>

        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_marginEnd="@dimen/spacing_xs_large">

            <com.fastaccess.ui.widgets.FontTextView
                android:id="@+id/patch"
                style="@style/TextAppearance.AppCompat.Small"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                tools:text="..."/>

            <com.fastaccess.ui.widgets.AutoLinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginTop="@dimen/spacing_normal"
                android:background="@drawable/top_border"
                app:auto_gravity="center"
                app:auto_orientation="horizontal">

                <com.fastaccess.ui.widgets.FontTextView
                    android:id="@+id/changes"
                    style="@style/TextAppearance.AppCompat.Small"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginEnd="@dimen/spacing_xs_large"
                    android:gravity="center"
                    tools:text="Changes\n100"/>

                <com.fastaccess.ui.widgets.FontTextView
                    android:id="@+id/addition"
                    style="@style/TextAppearance.AppCompat.Small"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginEnd="@dimen/spacing_xs_large"
                    android:gravity="center"
                    tools:text="Addition\n100"/>

                <com.fastaccess.ui.widgets.FontTextView
                    android:id="@+id/deletion"
                    style="@style/TextAppearance.AppCompat.Small"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginEnd="@dimen/spacing_xs_large"
                    android:gravity="center"
                    tools:text="Deletion\n100"/>

                <com.fastaccess.ui.widgets.FontTextView
                    android:id="@+id/status"
                    style="@style/TextAppearance.AppCompat.Small"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginEnd="@dimen/spacing_xs_large"
                    android:gravity="center"
                    tools:text="Status\nModified"/>

            </com.fastaccess.ui.widgets.AutoLinearLayout>
        </LinearLayout>

    </LinearLayout>
</android.support.v7.widget.CardView>