当前位置:网站首页>(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 RecyclerViewa) 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边栏推荐
- No main manifest attribute in jar
- Quickly build KVM virtual machine on # yyds dry goods inventory # physical machine
- Financial management [5]
- 15 lines of code using mathematical formulas in wangeditor V5
- Laravel study notes
- 257. detention of offenders
- 第六章 网络学习相关技巧5(超参数验证)
- Pseudo original intelligent rewriting API Baidu - good collection
- Jetpack Compose 最新进展
- Building Survey [1]
猜你喜欢
![[JS] - [stack, team - application] - learning notes](/img/5b/b90ed8d3eb4fc0ab41c6ea8d092d0f.png)
[JS] - [stack, team - application] - learning notes

Super detailed cookie addition, deletion, modification and query

选择类排序法

Dig deep into MySQL - resolve the clustered index / secondary index / federated index of InnoDB storage engine

第六章 网络学习相关技巧5(超参数验证)

22map introduction and API

Selective sort method

Detailed explanation of online group chat and dating platform project (servlet implementation)

Latest development of jetpack compose

Ganglia 的安装与部署
随机推荐
Helix distance of point
From client to server
File contains vulnerability issues
Building Survey [3]
379. 捉迷藏
Chapter VI skills related to e-learning 5 (super parameter verification)
Laravel message queue
QT to place the form in the lower right corner of the desktop
Case analysis: using "measurement" to improve enterprise R & D efficiency | ones talk
jar中没有主清单属性
基本数据类型
15 lines of code using mathematical formulas in wangeditor V5
监听 Markdown 文件并热更新 Next.js 页面
Laravel scheduled task
No main manifest attribute in jar
The R language uses the matchit package for propensity matching analysis and match The data function constructs the matched sample set, and judges the balance of all covariates in the sample after the
Construction equipment [4]
376. machine tasks
EMI的主要原因-工模电流
Basic data type
