Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show pull-to-refresh automatically? #89

Open
vinceyuan opened this issue May 5, 2014 · 3 comments
Open

How to show pull-to-refresh automatically? #89

vinceyuan opened this issue May 5, 2014 · 3 comments

Comments

@vinceyuan
Copy link

I have a list. The pull-to-refresh works well. Thanks!
When the local data is old, the app should load data from the server automatically on activity start. So I want to show the pull-to-refresh animation automatically on activity start.
I tried listView.scrollBy(x, y) which only scrolls the list view but does not trigger pull-to-refresh animation.
Is there any solution? Thanks

@foxty
Copy link

foxty commented Jul 9, 2014

Maybe you can use mListView.onRefresh() to auto load when activity start up.

@ru-alxr
Copy link
Contributor

ru-alxr commented Dec 2, 2014

@vinceyuan Have you got solution?

@johannilsson
Copy link
Owner

Hi, I would suggest to migrate over to the SwipeRefreshLayout that's available in the support library for doing pull to refresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants