recyclerView 中的重叠项目
我有一个Recyclerview,其中显示了从上到下显示的项目列表。 我想了解与上一件重叠的最后一项。
我使用recyclerview.itemdemdecoration
带有负面边距的几乎可以解决问题。项目视图确实重叠,但是当我处于列表的底部并且开始滚动时,重叠视图就会消失得太早。 在确定项目是否可见时,似乎根本没有考虑到Recyclerview。
有办法解决这个问题吗? 谢谢,
I have a RecyclerView with list of items displayed top to bottom.
I would like to have view of last item overlapping with the previous one.
I used RecyclerView.ItemDecoration
with negative top margin and it almost does the trick. Item views indeed overlap, but when I'm at the bottom of the list and I start scrolling up then overlapping view disappears too early.
It looks like RecyclerView does not take into account the negative margin at all when deciding if item is visible or not.
Is there a way to fix that?
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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