如何实现这种效果,可以准确停止回收库
我不知道如何描述它,它看起来像是显示下一个项目零件时停止滚动(约200 dp)的回收模型。我正在尝试测量recyclerview.addonscrolllistener
中显示的下一个项目的大小,以控制recyclerview
滑动状态。
但是,在fling fling时进行的回收浏览回调不够精确(滑动回调大约是1,20,50),以确定快速滑动时的确切位置,实际上,我尝试了recyclerview
和>
> NestedScrollview
。
这是屏幕录制的视频。
https://cdn.jsdelivr.net/gh/appdev/gallery@master/img/2022-07-07/ebp9do.mp4
在快速滚动时,它可以在滚动快速时停止时,它可以在下一个物品停止时停止部分显示。
您可以拖动并加载下一个。或者您可以继续拖累。像这样
I don't know how to describe it, it looks like a RecyclerView that stops scrolling when the next Item part is displayed (about 200dp). I'm trying to measure the size of the next Item displayed in RecyclerView.addOnScrollListener
to control the RecyclerView
sliding state.
But the RecycleView callback onScrollStateChanged while flinging is not precise enough (the sliding callback is something like 1,20,50) to determine the exact position when sliding fast, in fact, I tried RecyclerView
and NestedScrollView
.
Here's a video of the screen recording.
https://cdn.jsdelivr.net/gh/appdev/gallery@master/img/2022-07-07/ebP9do.mp4
When scrolling fast, it can stop when the next item is partially displayed.
You can just drag up and load the next one. Or you can keep dragging up. Like this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论