<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"

    android:id="@+id/cv_menu_tile"
    style="@style/list_item_card_view_box"
    android:layout_width="match_parent"
    android:layout_height="172dp"
    android:layout_margin="8dp"
    android:foreground="?attr/selectableItemBackground">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent" >

            <View
                android:id="@+id/centerShim"
                android:layout_height="wrap_content"
                android:layout_width="0dp"
                android:visibility="invisible"
                android:layout_centerHorizontal="true"/>

            <View
                android:layout_alignStart="@id/centerShim"
                android:layout_alignParentEnd="true"
                android:layout_width="wrap_content"
                android:layout_height="32dp"
                android:background="@drawable/demo_item_bar"
                android:layout_marginTop="@dimen/card_view_border_width"
                android:layout_marginEnd="@dimen/card_view_border_width"/>

        </RelativeLayout>

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

            <ImageView
                android:id="@+id/iv_menu_icon"
                android:layout_width="@dimen/card_view_main_icon_dimension"
                android:layout_height="@dimen/card_view_main_icon_dimension"
                android:layout_marginBottom="12dp"
                tools:src="@drawable/redesign_ic_demo_range_test"
                android:contentDescription="@string/content_desc_demo_item_icon" />

            <TextView
                android:id="@+id/tv_menu_title"
                style="@style/DemoMenuTileTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginBottom="4dp"
                android:text="@string/main_menu_title" />

            <TextView
                android:id="@+id/tv_menu_description"
                style="@style/DemoMenuTileBody"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:ellipsize="end"
                android:maxLines="4"
                android:text="@string/main_menu_description" />

        </LinearLayout>

    </RelativeLayout>

</com.google.android.material.card.MaterialCardView>