SuperListview icon indicating copy to clipboard operation
SuperListview copied to clipboard

Load more progress indicator

Open ghost opened this issue 10 years ago • 5 comments

How to hide loading more progress indicator after the items are done loading because it counties to spin endlessly.

ghost avatar Jul 20 '14 03:07 ghost

There's a function you can call to stop the 'OnMore Loading View' once your background data loading is done.

mList.hideMoreProgress();

metalwihen avatar Sep 13 '14 12:09 metalwihen

this method doesn't work. How can I hide it?

croccio avatar Oct 16 '14 17:10 croccio

Yes, It works, at least for me, but you have to call it after

mList.setAdapter();

nelo686 avatar Nov 02 '14 01:11 nelo686

You can just call mAdapter.notifyDataSetChanged(); after you've finished loading your data to adapter.

sovathna avatar Dec 23 '14 07:12 sovathna

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?

vhgmartins avatar Mar 12 '15 17:03 vhgmartins