@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()); }
@Override public void notifyDataSetChanged() { imageFlowUtils.rebuildGroups(); super.notifyDataSetChanged(); }
@Override public Object getItem(int num) { return imageFlowUtils.getGroupItem(num); }
@Override public int getCount() { return imageFlowUtils == null ? 0 : imageFlowUtils.getGroupsCount(); }