<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:card_view="http://schemas.android.com/tools"
    android:id="@+id/card_item"
    android:layout_width="match_parent"

    android:layout_height="wrap_content"
    android:layout_margin="5dp"

    android:clickable="true"
    android:focusable="true"

    android:foreground="?selectableItemBackground"
    app:cardBackgroundColor="@android:color/white"
    app:cardCornerRadius="5dp"
    app:cardElevation=".1dp"
    app:cardPreventCornerOverlap="true">

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

        <androidx.cardview.widget.CardView
            android:id="@+id/cardPublicationCover"
            android:layout_width="80dp"
            android:layout_height="120dp"
            android:clipChildren="false"
            android:clipToPadding="false"
            android:elevation="25dp"
            android:layout_margin="5dp"
            card_view:cardBackgroundColor="@color/White"
            card_view:cardCornerRadius="5dp"
            card_view:cardElevation="5dp"
            card_view:cardPreventCornerOverlap="false">

            <ImageView
                android:id="@+id/cover"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:adjustViewBounds="true"
                android:contentDescription="@string/app_name"
                android:scaleType="fitXY"
                android:background="@color/md_grey_placeholder"/>
        </androidx.cardview.widget.CardView>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <com.kenmoica.views.custom.CustomTextViewBold
                android:id="@+id/articleLabel"
                android:layout_width="150dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/normalPadding"
                android:layout_marginTop="@dimen/top_text_subtitle_card"
                android:layout_marginRight="@dimen/normalPadding"
                android:maxLines="2"
                android:textColor="@color/blackTextColor"
                android:textSize="@dimen/text_size_small"
                android:background="@color/md_grey_placeholder"/>

            <com.kenmoica.views.custom.CustomTextViewMedium
                android:id="@+id/articleDescription"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:layout_marginLeft="@dimen/normalPadding"
                android:layout_marginTop="@dimen/top_text_subtitle_card"
                android:layout_marginRight="@dimen/normalPadding"
                android:maxLines="2"
                android:ellipsize="end"
                android:textColor="@color/blackTextColor"
                android:textSize="@dimen/text_size_small"
                android:background="@color/md_grey_placeholder"/>

            <com.kenmoica.views.custom.CustomTextViewRegular
                android:id="@+id/articleCategory"
                android:layout_width="100dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/normalPadding"
                android:layout_marginTop="@dimen/top_text_subtitle_card"
                android:layout_marginRight="@dimen/normalPadding"
                android:lines="1"
                android:textSize="@dimen/text_size_tiny"
                android:background="@color/md_grey_placeholder"/>

            <com.kenmoica.views.custom.CustomTextViewBold
                android:id="@+id/articlePrice"
                android:layout_width="100dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/normalPadding"
                android:layout_marginTop="@dimen/top_text_subtitle_card"
                android:layout_marginRight="@dimen/normalPadding"
                android:layout_marginBottom="5dp"
                android:maxLines="1"
                android:textColor="@color/colorPrimary"
                android:textSize="@dimen/text_size_small"
                android:background="@color/md_grey_placeholder"/>
        </LinearLayout>
    </LinearLayout>

</androidx.cardview.widget.CardView>