Comments (2)
简单的总结下自己的发现吧,在LayoutManager的布局中新生成的View存在图片加载的情况下,会不断的触发RecyclerView重新Layout,解决方法是注释掉了onLayoutChildren中第二处detachAndScrapAttachedViews(recycler)
,然后把偏移量保存成全局的不在每次onLayoutChildren回调过程中都重新初始化为0。如果Layoutmanager的布局中不存在图片加载的话,onLayoutChildren就不会引起RecyclerView反复回调onLayoutChildren。
from zlayoutmanager.
想问一下你是怎么解决的,方便贴下代码吗
from zlayoutmanager.
Related Issues (20)
- 滑动被覆盖的view导致位置错乱 HOT 1
- 嵌套显示不完全
- 当数据少时,界面未填充完的情况下会出现抖动问题。
- FlowLayoutManager数据不满屏的暂时解决办法
- 大佬如果控制非顶层View 不可以滑动呢?
- 请教:为什么OverLayCardLayoutManager不需要removeAndRecycleView(child, recycler) 呢? 理论上顶层View被划出之后,就需要被回收呀
- 当Recyclerview嵌套时,把滑动卡片放入外层RecyclerView的一个cell里,不能滑动,感觉是ItemTouchHelper冲突,请教有解决方法么?
- 刷新数据,数组越界
- 最美有物
- 建议
- FlowLayoutManager 当条目 match parent 时,上滑动时,闪退
- 怎么监听最上层显示的position HOT 2
- 为什么这项目也有1000多个star,连个demo都测试我手机性能呢?
- 如果触摸的不是第一个卡片,下面的也会被拖动,如何屏蔽下面的卡片的拖动
- 流式布局,嵌套recyclerView时候数据显示不全
- 存在过度绘制,不知道能否优化
- 流式布局bug
- slideLayoutManager的卡片有时候不太好滑出去
- 用了你的库之后,页面无法显示出来 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zlayoutmanager.