Spinning progress bar in every listview item

后端 未结 6 518
日久生厌
日久生厌 2021-02-01 08:30

I\'ve been scratching my head over this for a long time now and searched for an answer without any luck! It seems to be trivial, but as far as I know, it isn\'t.

I use a

6条回答
  •  时光说笑
    2021-02-01 08:55

    I'm not sure this is possible given that each row in your ListView is recycled when it moves off screen. When a new row appears on the screen the ProgressBar views will all have to be re-synchronized with each other. Keeping all of the rows in sync is going to be a big PITA.

    Have you considered loading all of the list data in one request and caching that data to local storage? It would be much more efficient and result in a better user experience. It's not very useful to have a ListView that loads immediately with empty rows. I'd rather wait for the list to populate entirely.

提交回复
热议问题