Multiple selectable GridView

后端 未结 3 1964
感情败类
感情败类 2021-02-06 06:18

OK, so I think I\'ve exhausted searching for this question, and it\'s either that I\'m totally missing something or nobody else has tried to create a GridView (showing images) w

3条回答
  •  佛祖请我去吃肉
    2021-02-06 07:00

    I have used an excellent code by Mihai Fonoage.

    And then:

    1. added a selected flag to LoadedImage class,
    2. in the onItemClick() function I mark the clicked item as selected
    3. in the adapter's getView() use the flag to i.e. set the image background

    IT WORKS.

提交回复
热议问题