예제 #1
0
 @Override
 public View getView(int position, View convertView, ViewGroup parent) {
   if (checkNeedToLoadNextPage(position)) {
     loadNextPage();
   }
   return imageFlowUtils.getView(
       position,
       convertView,
       parent,
       R.layout.item_gallery_image_line,
       R.layout.item_gallery_image,
       R.id.image,
       getActivity());
 }
예제 #2
0
 @Override
 public void notifyDataSetChanged() {
   imageFlowUtils.rebuildGroups();
   super.notifyDataSetChanged();
 }
예제 #3
0
 @Override
 public Object getItem(int num) {
   return imageFlowUtils.getGroupItem(num);
 }
예제 #4
0
 @Override
 public int getCount() {
   return imageFlowUtils == null ? 0 : imageFlowUtils.getGroupsCount();
 }