-
item_grid布局设置成wrap_content
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
xmlns:card="http://schemas.android.com/apk/res-auto"
card:cardElevation="4dp"
card:cardCornerRadius="4dp"
card:cardUseCompatPadding="true"
android:layout_height="wrap_conte