Dynamic change on listview row layout affects other rows too

后端 未结 2 1632
隐瞒了意图╮
隐瞒了意图╮ 2021-01-07 03:06

I am using ListView and there are several buttons on each list element.

when a button on a row is clicked that button should disappear. the clicked button disappears

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-07 03:30

    Amal has part of your answer. When your adapter gets a getview call completely reinitialize the reused view.

    As for your speed problem. Sounds like you want your adapter to load its data lazily. Your loading of that data is slow. Something has to give. A common solution to this problem is to load your data in a background thread.

提交回复
热议问题