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.
グリッドビューに n 個の画像があるアプリケーションがあります。最初にユーザーはインデックス 0 の画像をクリックし、ゲームをプレイして完了します。次回は、インデックス 1 の画像を変更する必要があります。これどうやってするの。
これを解決するには、アダプターで notifyDataSetChanged() を呼び出し、gridview で invalidateViews() を呼び出します