Recyclerview中的粘性物品内容
将循环系统的内容粘贴到屏幕侧面的最佳方法是什么?因此,当元素脱离屏幕时,其内容会粘在侧面,并且只有在该孩子的其余元素中没有空间之后才与父母一起使用。
我已经连接了剩下用户滚动的示例,因此RV项目的红色孩子粘在屏幕的左侧。
What is the best way to stick the content of a recyclerview items to the side of the screen. So that when the element goes off screen its content sticks to the side and goes with its parent only after there is no room in the rest of the element for that child.
I've attached the example where user scrolls left, so the red child of rv item is sticked to the left side of the screen.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
中尝试此代码
在您的视图持有人Kotlin
Java
Try this code in your view holder
Kotlin
Java