示例#1
0
 @Override
 public void loadMore(int offset, int pageSize) {
   List<Position> morePositions = databaseHelper.loadLikedPositions(pageSize, offset);
   likedPositions.addAll(morePositions);
   positionAdapter.notifyDataSetChanged();
 }
示例#2
0
 private void refreshLikedPositions() {
   likedPositions.clear();
   likedPositions.addAll(databaseHelper.loadLikedPositions());
   positionAdapter.notifyDataSetChanged();
 }