セレクター「drawable/card_foreground_selector」を作成
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape android:shape="rectangle">
<solid android:color="#18000000"/>
<corners android:radius="@dimen/card_radius" />
</shape>
</item>
<item android:state_focused="true" android:state_enabled="true">
<shape android:shape="rectangle">
<solid android:color="#0f000000"/>
<corners android:radius="@dimen/card_radius" />
</shape>
</item>
</selector>
「drawable/card_foreground.xml」を作成します (カードの標高に応じてインセット値を微調整する必要があります)
<inset xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/card_foreground_selector"
android:insetLeft="2dp"
android:insetRight="2dp"
android:insetTop="3dp"
android:insetBottom="3dp"/>
アイテムを変更する (item.xml)
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:contentPadding="8dp"
android:foreground="@drawable/card_foreground">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
// ..
</LinearLayout>
</android.support.v7.widget.CardView>
ここで元の投稿を表示できます