扫码关注官方订阅号
如何更新RecyclerView里的进度条?
RecyclerView
entity.setProgress(progress); Adapter.notifyItemChanged(entity.getId());
这样更新,列表里对应的item里的文字会闪屏。大家都是怎么做的呢?这么多天了没人回答呢。。。都没有碰到过吗
业精于勤,荒于嬉;行成于思,毁于随。
楼上说的对,是RecyclerView默认改变动画导致的,最简单就是直接设置RecyclerView的ItemAnimator为null
用frameLayout把textview放到progressbar的上面试试?
item默认是有动画的,你可以去掉动画试试
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
楼上说的对,是RecyclerView默认改变动画导致的,最简单就是直接设置RecyclerView的ItemAnimator为null
用frameLayout把textview放到progressbar的上面试试?
item默认是有动画的,你可以去掉动画试试