how can I show selection of an image in grid view at once

后端 未结 3 582
慢半拍i
慢半拍i 2021-01-07 14:41

I have a question that I have a custom grid view in which two images one is the background image and second is the check mark image, when I clicked on one Item of grid view

3条回答
  •  心在旅途
    2021-01-07 15:03

    Do the following in your overrided method onItemClick

    gridView.setOnItemClickListener(new OnItemClickListener() {
     public void onItemClick(AdapterView p, View view, int position,
                            long id) {
                        pos=position;
                        for(int i=0;i

提交回复
热议问题