How can I change Image on Gridview Runtime?

后端 未结 3 1874
梦毁少年i
梦毁少年i 2020-12-18 17:20

I have one GridView with 3 Column and 3 Rows I want to change Image when User Click any two Images.

for Example I Click First Row 1 and Column 3 Image and Secondly I

3条回答
  •  伪装坚强ぢ
    2020-12-18 17:43

    Also do the following for updating the grid view images to complete the swap operation:

    im.notifyDataSetChanged();
    gridView.setAdapter(im);
    gridView.invalidateViews()
    

提交回复
热议问题