谷歌的支持库中的CardView在Android 5.0以上版本里运行时默认是没有阴影效果的android
加入下面一句代码就能解决这个问题app
app:cardUseCompatPadding="true"
<android.support.v7.widget.CardView app:cardUseCompatPadding="true" android:layout_width="match_parent" android:layout_height="wrap_content"/>