我正在使用flexbox-layout lib实现instagram之类的布局
无法创建网格(3) 无法跨越网格
期望产量 out put image link
item_xml
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.flexbox.FlexboxLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/flexbox_layout"
app:layout_flexShrink="3"
app:flexDirection="row"
app:flexWrap="wrap"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/dp_1">
<ImageView
android:id="@+id/iv_thumb"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_250"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/ic_fb" />
</com.google.android.flexbox.FlexboxLayout>
calss代码部分
FlexboxLayoutManager layoutManager = new FlexboxLayoutManager(getActivity());
layoutManager.setJustifyContent(JustifyContent.FLEX_END); RVmain.setLayoutManager(layoutManager);