Android分页3跳转和占位符示例
我一直在搜索很多,但找不到示例如何从已加载页面中的一个位置跳转到另一个尚未加载页面中的另一个位置以及如何实现占位符。
我知道 PagingConfig 中的“jumpThreshold”和“enablePlaceholders”参数,但是文档不清楚,所有提供的示例都非常标准,没有一个实际涵盖该场景。
我想知道是否有人在同一条船上以及你是如何解决的。不确定这是否可以帮助@dlam?
I’ve been searching a lot but couldn’t find an example how to jump from a position in a loaded page to another position in another page which hasn’t been loaded and how to implement placeholders.
I am aware of ‘jumpThreshold’ and ‘enablePlaceholders’ params in PagingConfig however the doc isn’t clear, all the provided examples are pretty standard and none actually covers the scenario.
I was wondering if anyone on the same boat and how did you work it out. Not sure if this is something you can help @dlam?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
'enablePlacedholder' 应为 'true',默认情况下存在,然后您可以指定 'jumpThreshold' 值。例如:我正在使用以下配置从数据库加载 1L 行:
看一下这个示例:
https://blog.ah.technology/paging-3s-占位符和跳转功能-805344191df
'enablePlacedholder' should be 'true', which is there by default and then you can give 'jumpThreshold' value. for eg: I am loading 1L rows from DB with following config:
Take a look at this example:
https://blog.ah.technology/paging-3s-placeholders-and-jumping-features-805344191df