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.
我有一个应用程序,它在 gridview 上有 n 个图像,最初用户将单击索引 0 处的图像并玩游戏来完成它。下次应该更改索引 1 处的图像。我怎样才能做到这一点。
通过在适配器上调用 notifyDataSetChanged() 和在 gridview 上调用 invalidateViews() 解决了这个问题