Android 的粘性滚动视图

发布于 2025-01-15 07:16:22 字数 693 浏览 4 评论 0原文

我想在布局中实现粘性滚动视图,当遇到一种特定类型的视图(在滚动视图内)时,它会粘在顶部,直到遇到其他类似类型的视图。

我找到了这个图书馆,但它很旧,如果您知道任何新图书馆,请告诉我。 https://github.com/emilsjolander/StickyScrollViewItems

另外,我在滚动视图中使用静态数据。 我已附上屏幕截图来展示我想要实现的目标 输入图片此处描述输入图片此处描述输入图片此处描述

I want to implement a sticky scroll view inside my layout in a way that when one specific type of view (inside the scroll view) is encountered then it gets stick at the top until the other similar type of view is encountered.

I found this library but it's pretty old, if you know any new one please let me know.
https://github.com/emilsjolander/StickyScrollViewItems

Also I am using static data inside my scroll view.
I have attached screenshots to show what I want to achieve
enter image description here
enter image description here
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文