<? xml version="1.0" encoding="utf-8"? >

<com.google.android.material.card. MaterialCardView
    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/layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="@dimen/dp_2"
    android:layout_marginBottom="@dimen/dp_6"
    android:clickable="true"
    android:focusable="true"
    android:background="@color/white"
    android:foreground="?attr/selectableItemBackgroundBorderless"
    android:longClickable="true"
    android:orientation="vertical"
    app:cardCornerRadius="0dp"
    app:cardElevation="@dimen/dp_3">

    <androidx.constraintlayout.widget. ConstraintLayout
        android:id="@+id/article_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:background="@color/white"
        android:paddingBottom="@dimen/dp_10">
        <TextView
            android:id="@+id/title_text_view"
            style="@style/TextStyle. Heading"
            android:textStyle="bold"
            android:layout_width="@dimen/dp_0"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/dp_14"
            android:layout_marginTop="@dimen/dp_10"
            android:layout_marginEnd="@dimen/dp_14"
            android:maxLines="2"
            android:textSize="@dimen/sp_14"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            tools:text="Title"/>

        <TextView
            android:id="@+id/reply_and_view"
            style="@style/TextStyle. Title. Sub"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/dp_8"
            android:layout_marginTop="@dimen/dp_5"
            app:layout_constraintTop_toBottomOf="@id/title_text_view"
            app:layout_constraintStart_toStartOf="@id/title_text_view"
            tools:text="10 / 200"/>

        <TextView
            android:id="@+id/origin"
            style="@style/TextStyle. Title. Sub"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ellipsize="middle"
            android:maxWidth="@dimen/dp_200"
            android:singleLine="true"
            android:layout_marginTop="@dimen/dp_4"
            app:layout_constraintTop_toBottomOf="@id/reply_and_view"
            app:layout_constraintStart_toStartOf="@id/title_text_view"
            tools:text="『原创发布区』"/>
        
        <top.easelink.framework.customview. ELStampView
            android:id="@+id/stamp"
            android:layout_width="@dimen/dp_30"
            android:layout_height="@dimen/dp_30"
            android:layout_marginEnd="@dimen/dp_4"
            android:layout_marginTop="@dimen/dp_4"
            android:visibility="gone"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            tools:visibility="visible"
            tools:stampText="50"
            tools:stampColor="@color/colorAccent"
            />

        <TextView
            android:id="@+id/author_text_view"
            style="@style/TextStyle. Title. Sub"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="@dimen/dp_10"
            app:layout_constraintTop_toTopOf="@id/reply_and_view"
            app:layout_constraintEnd_toEndOf="@id/title_text_view"
            tools:text="Author"/>

        <TextView
            android:id="@+id/date_text_view"
            style="@style/TextStyle. Title. Sub"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toTopOf="@id/origin"
            app:layout_constraintEnd_toEndOf="@id/author_text_view"
            tools:text="2019-07-04"/>

        <ImageView
            android:id="@+id/recommend_flag"
            android:layout_width="@dimen/dp_30"
            android:layout_height="@dimen/dp_30"
            android:src="@drawable/ic_recommendation"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            android:contentDescription="@null" />

    </androidx.constraintlayout.widget. ConstraintLayout>
</com.google.android.material.card. MaterialCardView>