SuperListview
SuperListview copied to clipboard
Load more progress indicator
How to hide loading more progress indicator after the items are done loading because it counties to spin endlessly.
There's a function you can call to stop the 'OnMore Loading View' once your background data loading is done.
mList.hideMoreProgress();
this method doesn't work. How can I hide it?
Yes, It works, at least for me, but you have to call it after
mList.setAdapter();
You can just call mAdapter.notifyDataSetChanged();
after you've finished loading your data to adapter.
Is not working. If I use the hideMoreProgress() function, the progress indicator is not displayed.
listViewNews.setupMoreListener(new OnMoreListener() { @Override public void onMoreAsked(int numberOfItems, int numberBeforeMore, int currentItemPos) { listViewNews.showMoreProgress(); ((ArrayAdapter)listViewNews.getAdapter()).add(n); ((ArrayAdapter)listViewNews.getAdapter()).notifyDataSetChanged(); listViewNews.hideMoreProgress(); } }, 1);
How can I show it only on loading?