当前位置:网站首页>(Smooth)ScrollToPosition doesn't work properly with RecyclerView
(Smooth)ScrollToPosition doesn't work properly with RecyclerView
2022-06-24 23:27:00 【Bustling city 】
problem :
I'm using basic RecyclerView with GridLayoutManager. I'm using GridLayoutManager Basic RecyclerView.I observed that nor smoothScrollToPosition nor scrollToPosition works properly. I observed smoothScrollToPosition and scrollToPosition Can't work properly .
a) when using smoothScrollToPosition
I often receive error from RecyclerView
a) Use smoothScrollToPosition
I often receive from RecyclerView
error
"RecyclerView﹕ Passed over target position while smooth scrolling."“RecyclerView: Cross the target position when scrolling smoothly .”
and RecyclerView
is not scrolled properly (often it misses the targeted row). also RecyclerView
Incorrect scrolling ( The target line is usually missed ).This is observed mostly when I'm trying to scroll to the 1st item of some row This is mainly observed when I try to scroll to the first item of a line
b) when using scrollToPosition
it seems to work quite ok but most of the time I can see only the 1st item of the row and the rest are not displayed.b) Use scrollToPosition
It seems to work well , But most of the time I can only see the first item of the line , The rest are not shown .
Can you give me some hints how to make work properly at least one of the methods? Can you give me some tips on how to make at least one method work ?
Thanks a lot! Thank you very much !
Solution :
Reference resources : https://stackoom.com/en/question/25QNy边栏推荐
- golang map clear
- [JS] - [tree] - learning notes
- Simpledateformat concrete classes for formatting and parsing dates
- [JS] - [string - application] - learning notes
- Jetpack Compose 最新进展
- Blogs personal blog test point (manual test)
- Laravel pagoda security configuration
- 慕思股份深交所上市:靠床垫和“洋老头”走红 市值224亿
- idea创建模块提示已存在
- Use of laravel verifier
猜你喜欢
Huawei machine learning service speech recognition function enables applications to paint "sound" and color
Harmonyos accessing database instances (3) -- use ORM bee to test how good harmonyos is
文件包含漏洞问题
[JS] - [string - application] - learning notes
国内有哪些好的智能家居品牌支持homekit?
[JS] - [array, Stack, queue, Link List basis] - Notes
【js】-【链表-应用】-学习笔记
Quickly build KVM virtual machine on # yyds dry goods inventory # physical machine
当初吃土建起来的“中台”,现在为啥不香了?
Paddledtx v1.0 has been released, and its security and flexibility have been comprehensively improved!
随机推荐
golang map clear
Dig deep into MySQL - resolve the non clustered index of MyISAM storage engine
7-6 铺设油井管道
372. chessboard coverage
Selection (025) - what is the output of the following code?
R语言dplyr包select函数将dataframe数据中的指定数据列移动到dataframe数据列中的第一列(首列)
[JS] - [string - application] - learning notes
[JS] - [stack, team - application] - learning notes
斐波那契
基于三维GIS开发的水电工程建设方案
MySQL 表的增删查改
RT-thread使用rt-kprintf
记录一下MySql update会锁定哪些范围的数据
宁德时代定增450亿:高瓴认购30亿 曾毓群仍控制23%股权
#22Map介绍与API
Laravel authentication module auth
R语言dplyr包group_by函数和summarise_at函数计算dataframe计算不同分组的计数个数和均值(Summarise Data by Categorical Variable)
376. Tâches mécaniques
Laravel user authorization
Ganglia 的安装与部署