Max Kleine
Max Kleine

Reputation: 143

PullToRefreshListView scroll to bottom

I am using the PullToRefreshListView library from here. When new content is added I am trying to have the view scroll to the bottom. Nothing seems to work. I tried everything mentioned in this answer and used listView.scrollTo(), listView.getRefreshableView().smoothScrollToPosition() etc. but nothing seems to work. Please help.

Upvotes: 0

Views: 718

Answers (1)

I am using the same library, scrolling like this always works for me.

listView.getRefreshableView().smoothScrollToPosition(adapter.getCount());

If not works, put your code here, something you are doing is wrong...

Upvotes: 1

Related Questions