Skip to content Skip to sidebar Skip to footer

Scroll To End In A Pulltorefreshlistview

How do I programmatically upon inserting new items to a PullToRefreshListView scroll so that the last item is visible? Here is some code: listView = (PullToRefreshListView) findVie

Solution 1:

You can set the TranscriptMode on a ListView to have it always scroll to the bottom when new content is added

listView.setTranscriptMode(ListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);

You can also use

listView.scrollTo(0, listView.getHeight());

Post a Comment for "Scroll To End In A Pulltorefreshlistview"