Android Adapter multiple getView

前端 未结 4 771
一生所求
一生所求 2021-02-15 15:45

i have read about the issue of getView called multiple times and all the answers. However, i don\'t find a solution for my problem.

I have a list where rows have two sta

4条回答
  •  面向向阳花
    2021-02-15 16:33

    Not the way you want it to work. The reason that getView() is called multiple times is to allow the OS to measure the rows so it knows how to lay them out. You would need to have it marked as read when they click it or check a box or something.

提交回复
热议问题