示例#1
0
    @Override
    protected List<AccountRecord> doInBackground(Void... params) {

      List<AccountRecord> tempArList = null;

      tempArList = ArDao.getSingleInstance().queryLimitRows(offset, LIMIT_ROW_TOTAL);
      if (tempArList != null) {
        arList.addAll(tempArList);
      }

      return tempArList;
    }
示例#2
0
  public void updateArListViewSync() {

    arList = ArDao.getSingleInstance().queryLimitRows(0, Math.max(LIMIT_ROW_TOTAL, arList.size()));

    if (arList.size() < LIMIT_ROW_TOTAL) {
      btLoadMore.setVisibility(View.GONE);
    } else {
      btLoadMore.setVisibility(View.VISIBLE);
    }

    arAdapter.notifyDataSetChanged();
    ArFragment.this.setListViewToTop();
  }
示例#3
0
    @Override
    protected List<AccountRecord> doInBackground(Boolean... params) {

      isSetListViewToTop = params[0];
      List<AccountRecord> tempArList = null;

      tempArList =
          ArDao.getSingleInstance().queryLimitRows(0, Math.max(LIMIT_ROW_TOTAL, arList.size()));
      if (tempArList != null) {
        arList = tempArList;
      }

      return tempArList;
    }