LayoutManager-FlowLayout icon indicating copy to clipboard operation
LayoutManager-FlowLayout copied to clipboard

快速利用RecyclerView的LayoutManager搭建流式布局

Results 34 LayoutManager-FlowLayout issues
Sort by recently updated
recently updated
newest added

RV 嵌套 RV ``` java BaseViewHolder holder = super.onCreateViewHolder(parent, viewType); RecyclerView rc = holder.getView(R.id.rc_post); rc.setLayoutManager(new FlowLayoutManager()); rc.addItemDecoration(new SpaceItemDecoration((int) MetricsUtil.dpToPx(4))); rc.setAdapter(new LabelAdapter(R.layout.uum_list_item_post)); return holder; ``` LabelAdapter 内容就一个 TextView ``` xml ```...

加载的第一个item和其他的item不在一条直线上,位置偏下

大佬 !请问下怎么实现下面这种样式的瀑布流呢?GridLayoutManager不能跨行,StaggeredGridLayoutManager又不能跨列,而且它们都需要指定列数,想了很久都没什么思路。 ![瀑布流](https://user-images.githubusercontent.com/19324984/87915816-340e7a00-caa5-11ea-8b65-1dd6254d92bb.png)

怎么实现下拉刷新,上拉加载更多呢

多个 Rv 垂直自适应高度放置在 NestedScrollView 中不显示item 后将 NestedScrollView 改为 ScrollView 可以正常显示

.debug E/AndroidRuntime: FATAL EXCEPTION: main Process: com.txunda.cropproduct.debug, PID: 25313 java.lang.NullPointerException: Attempt to read from field 'int android.graphics.Rect.top' on a null object reference at com.library.flowlayout.FlowLayoutManager.formatAboveRow(FlowLayoutManager.java:234) at com.library.flowlayout.FlowLayoutManager.onLayoutChildren(FlowLayoutManager.java:154) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3625) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3354)...

设置动画setItemAnimator不太正常

加载10000条数据,App直接ANR了。有什么办法解决的吗?