Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用列表视图使用“ArrayAdapter”来显示项目数,而用户正在查看结果时,当用户单击加载按钮我希望结果加载并预先添加(在开头添加)
找到解决方案
使用适配器的插入方法并将其添加到位置 0 每次以及添加反向顺序之前,这样如果不反转第一项将显示在末尾,则第一项将显示在开头。