gpt4 book ai didi

android - 如何获取 ListAdapter 的列表

转载 作者:行者123 更新时间:2023-12-03 10:12:34 25 4
gpt4 key购买 nike

是否有可能获取我的列表适配器中的项目列表,因为访问列表的唯一方法是 submitList()

最佳答案

Call getCurrentList() .引用文档:

Get the current List - any diffing to present this list has already been computed and dispatched via the ListUpdateCallback. If a null List, or no List has been submitted, an empty list will be returned.

关于android - 如何获取 ListAdapter<Model,ViewHolder::class> 的列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55602711/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com