Beispiel #1
0
 @Override
 protected void onPostExecute(List<String> list) {
   super.onPostExecute(list);
   ToastUtil.showShortToast(MainActivity.this, "结束任务");
   if (page == 1) {
     demoAdapter.clear();
   }
   demoAdapter.setHasMoreData(page < 5);
   demoAdapter.appendList(list);
   demoAdapter.notifyDataSetChanged();
 }
Beispiel #2
0
 @Override
 protected void onPreExecute() {
   super.onPreExecute();
   ToastUtil.showShortToast(MainActivity.this, "开始任务");
 }