如何处理撰写中分页数据的结果并实现页眉和页脚加载状态?
在视图系统中,有官方示例如何实现加载状态并将页眉和页脚项目添加到列表中:
https://developer.android.com/topic/libraries/architecture/paging/load-state
我没有真正找到任何与 Jetpack Compose
Only 类似的内容如何显示项目
https://developer.android.com/jetpack/compose/lists#large-datasets< /a>
但是我们如何在 Compose 中实现加载状态呢?
In View system there are official examples how to implement loading states and adding header and footer item to the list:
https://developer.android.com/topic/libraries/architecture/paging/load-state
I didn't really found anything similar for Jetpack Compose
Only how to show items
https://developer.android.com/jetpack/compose/lists#large-datasets
But how can we implement load states in Compose?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们正在做类似的事情,它运行良好:
我们还具有此扩展功能,以使其变得更加容易,并从
lazycolumn
中删除噪声:然后,您然后以这样的方式使用它:
We are doing something like this, it works well:
We also have this extension function to make it a bit easier and remove the noise from
LazyColumn
:You then use it like this: