Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ListView Pull Down to Refresh

Is there any default function that exists like in iOS to update a listview ? Or any other library ?

like image 984
user3141985 Avatar asked Apr 16 '14 18:04

user3141985


2 Answers

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/

like image 183
Distwo Avatar answered Oct 19 '22 23:10

Distwo


@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.

like image 21
user3141985 Avatar answered Oct 20 '22 00:10

user3141985