Spinning progress bar in every listview item

后端 未结 6 538
日久生厌
日久生厌 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 09:07

    In your adapter getView() disable your progressViwe's, and then for each progressView

    handler.postAtTime(new Runnable(){
    
    public void run(){
         progressView.setEnabled(true);
    }}, someTimeInTheFuture
    );
    

    What this will do is enable all your progressViews at the same time. This might work, i have not tested. If this does not work then you may want to add the progressView dynamically(not included in the layout, but add via addView()). But do so in the runnable, the key here is so they all get added at the same time.

提交回复
热议问题