我使用过像this这样的正常交错网格视图:
recyclerView.setLayoutManager(new StaggeredGridLayoutManager(3, 1));
我的布局文件是:
android:id="@+id/card_view"
android:layout_gravity="center"
android:layout_margin="10dp"
android:elevation="3dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
card_view:cardUseCompatPadding="true"
card_view:cardCornerRadius="8dp"
android:layout_marginBottom="16dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<ImageView
android:id="@+id/bookImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:scaleType="centerCrop"
/>
</RelativeLayout>
</android.support.v7.widget.CardView>
但我无法实现设计,任何人都可以建议我一些方法,我可以调整我的图像大小可变高度和宽度图像只来自Web服务。我已经使用Picasso依赖关系在recyclerview中显示图像
谢谢