Reputation: 1385
Is there any default function that exists like in iOS to update a listview ? Or any other library ?
Upvotes: 16
Views: 31169
Reputation: 1385
@elimirks pointed me to correct direction for using ActionBar-PullToRefresh, but for being newbie I was getting a lot or errors and was not able to use it well until I found ActionBar Pull To Refresh Tutorial. To use ActionBar-PullToRefresh
the other library SmoothProgressBar is also required and need to be configured.
Thanks.
Upvotes: 5
Reputation: 11749
This is now supported by the support library and called swipeRefreshLayout
https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html
And here is an example: http://antonioleiva.com/swiperefreshlayout/
Upvotes: 38