Android: Update Listview after Thread loads data from the net

后端 未结 3 1703
小蘑菇
小蘑菇 2020-12-24 15:01
  1. I like that my GUI appears immediately when the user starts the app.
  2. Then some data (text, pictures) gets loaded in the background (like YouTube app).
3条回答
  •  执笔经年
    2020-12-24 15:47

    You may use the slowAdapter to refresh the View:

    SlowAdapter slowAdapter = new SlowAdapter(this);
    
    list.setAdapter(slowAdapter);
    slowAdapter.notifyDataSetChanged();
    

提交回复
热议问题