当前位置:网站首页>(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边栏推荐
- Accounting standards for business enterprises application [5]
- Websocket learning
- R language uses the multinom function of NNET package to build an unordered multi classification logistic regression model, and uses the AIC function to compare the AIC values of the two models (simpl
- jar中没有主清单属性
- 【js】-【數組、棧、隊列、鏈錶基礎】-筆記
- Laravel add helper file
- Dig deep into MySQL - resolve the difference between clustered and non clustered indexes
- 【js】-【链表-应用】-学习笔记
- websocket长链接压测
- 376. 机器任务
猜你喜欢
Mycms we media CMS V3.0, resource push optimization, new free template

Chapter VI skills related to e-learning 5 (super parameter verification)

从客户端到服务器

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

选择类排序法

【js】-【树】-学习笔记

InnoDB, the storage engine of MySQL Architecture Principle_ Redo log and binlog
![[JS] - [array application] - learning notes](/img/8a/808fde0cc86e0ec5e1f5558ba196b4.png)
[JS] - [array application] - learning notes

MySQL 表的增删查改

RT thread uses RT kprintf
随机推荐
R语言使用nnet包的multinom函数构建无序多分类logistic回归模型、使用exp函数和coef函数获取模型中每个变量(自变量改变一个单位)对应的优势比(odds ratio)
第六章 网络学习相关技巧5(超参数验证)
Construction equipment [6]
Main cause of EMI - mold current
Laravel user authorization
二分查找数组下标
Construction equipment [5]
R语言使用nnet包的multinom函数构建无序多分类logistic回归模型、使用AIC函数比较两个模型的AIC值的差异(简单模型和复杂模型)
Ningde times will increase RMB 45billion: Hillhouse subscribes RMB 3billion and Zeng Yuqun still controls 23% of the equity
Laravel authentication module auth
SimpleDateFormat 格式化和解析日期的具体类
Still using simpledateformat for time formatting? Be careful of project collapse
The dplyr package select function of R language moves the specified data column in the dataframe data to the first column (the first column) in the dataframe data column
当初吃土建起来的“中台”,现在为啥不香了?
Blogs personal blog project details (servlet implementation)
Super detailed cookie addition, deletion, modification and query
Whereabouts computer desktop small arrow
7-2 后序+中序序列构造二叉树
sql -CONVERT函数
Gocolly manual
