Reputation: 7914
I don't really know how to name it. In android gmail app or google now, etc it's possible to refresh data by all content down and then release it. All data are refreshed, with nice animation.
I'm looking for solution how it's done and how can I do the same in my own application. Do you have any examples, tutorials etc? How to develop this kind of "pull to refhresh"?
[edit] What is better - 3rd party lib or Android SDK functionality? I'm looking for look like closest to gmail app.
Upvotes: 0
Views: 1900
Reputation: 38429
Read below lib for refresh your page :
https://github.com/chrisbanes/Android-PullToRefresh
This lib support :-
ListView
ExpandableListView
GridView
WebView
ScrollView
HorizontalScrollView
ViewPager
Upvotes: 1
Reputation: 1187
There is a Pull to refresh library which is mostly used. It is very easy to implement. From here you can download it.
Just import the library into your IDE, and add it your project as a dependency. An example is also included form which you can get coding related help.
Upvotes: 0
Reputation: 1662
There is a SwipeToRefreshLayout
in android which is used to to that.
https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html
Here is one of the tutorials
http://antonioleiva.com/swiperefreshlayout/
Upvotes: 3