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.
我有一个包含许多项目(大约 10 - 200 个)的列表视图,当我单击一个项目时,我会更新其属性,然后更新列表视图。但是由于项目太多,更新有点慢。无论如何只更新列表视图中的项目而不必刷新整个列表?
问候
可以更改 ListView 的元素,但这不是一个好的解决方案,因为您正在直接访问列表视图项的小部件,例如 textview。但它至少可以作为临时解决方案
例子:
如何更新 ListView 中的单行?