vlayout icon indicating copy to clipboard operation
vlayout copied to clipboard

Project vlayout is a powerfull LayoutManager extension for RecyclerView, it provides a group of layouts for RecyclerView. Make it able to handle a complicate situation when grid, list and other layout...

Results 100 vlayout issues
Sort by recently updated
recently updated
newest added

[2018-06-15_16_14_42.mp4.zip](https://github.com/alibaba/vlayout/files/2105304/2018-06-15_16_14_42.mp4.zip) zip是复现视频 com.alibaba.android:vlayout:1.2.11之后,StaggeredGrid 数据变化后,视图会错位 1.2.10版本正常 在当前demo也能复现,diff修改如下 ``` diff --git a/examples/src/main/java/com/alibaba/android/vlayout/example/VLayoutActivity.java b/examples/src/main/java/com/alibaba/android/vlayout/example/VLayoutActivity.java index d17b552..1c3f796 100644 --- a/examples/src/main/java/com/alibaba/android/vlayout/example/VLayoutActivity.java +++ b/examples/src/main/java/com/alibaba/android/vlayout/example/VLayoutActivity.java @@ -105,6 +105,8 @@ public class VLayoutActivity extends Activity { private Runnable...

前提是: 列表有部分滚出屏幕, 如果recyclerview没有item滚出屏幕,不会有异常 https://user-images.githubusercontent.com/8656426/111313991-f4cc1380-869b-11eb-8a93-64e84faa03bc.mp4 https://user-images.githubusercontent.com/8656426/111314028-fc8bb800-869b-11eb-9d0f-1fbd237906d2.mp4

item是一个recycleview 把最外层的复用池 传给作为item的recycleview 多滑动几次布局 会出现卡顿。我把作为item的recycleview 不设置复用池 就不会出现卡顿。如果里面的item需要设置复用池 如何和外层公用一个。谢谢!!! @ @longerian

我觉得横向线性布局在开发中还是一个很常见的需求,VLayout官方不提供这个功能导致要做很多处理,如果处理地不好的话好会导致这部分Adapter不能复用,这对于我这种代码洁癖的人来说还是很苦恼的。 经过再三考虑,我使用了装饰者模式封装了一个横向布局Adapter,外界只需要传入真实的Adapter即可实现横向布局,以下为代码 ` public class VLayoutHorizontalAdapter extends DelegateAdapter.Adapter{ private RecyclerView.Adapter adapter; private int spanCount = 1; //横向的列,填1相当于横向线性布局,根据自己的需求更改这个值 private RecyclerView.ItemDecoration decoration; public VLayoutHorizontalAdapter(RecyclerView.Adapter adapter) { this.adapter = adapter; } public VLayoutHorizontalAdapter(RecyclerView.Adapter...

版本v1.0.3 DelegateAdapter布局如下 LinearLayoutHelper (header) StaggeredGridLayoutHelper (2列瀑布流) LinearLayoutHelper (footer加载更多) ---------- - - - header - - - ---------- - 1 2 - - 3 4 - - 5 6 - ----------...

02-08 15:13:36.965 391 391 E AndroidRuntime: android.view.InflateException: Binary XML file line #42: Error inflating class 02-08 15:13:36.965 391 391 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:633) 02-08 15:13:36.965 391 391 E AndroidRuntime: at...

请问做瀑布流时,StaggeredGridLayoutHelper 设置lanes 为2 ,界面左右展示的数据跟后台返回的数据顺序不一致,能不能不交换位置~急,请求帮助~~谢谢

fragment中使用vlayout, 刷新数据时,AppBarLayout不能滑动