@Override public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { if (loader.getId() == HashtagsQuery.TOKEN) { final HashtagsAdapter adapter = new HashtagsAdapter(getActivity(), cursor); mCollectionView.setCollectionAdapter(adapter); mCollectionView.updateInventory(adapter.getInventory()); mCollectionView.setOnScrollListener( new AbsListView.OnScrollListener() { @Override public void onScrollStateChanged(AbsListView view, int scrollState) { adapter.hideDescriptionToast(); } @Override public void onScroll( AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {} }); } }