Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pull to Refresh for WebView

Is it possible to implemented a Pull to Refresh feature to reload pages within a WebView (Version 2.2 and above)?

like image 254
Alexander Avatar asked Feb 03 '23 11:02

Alexander


2 Answers

Have you tried https://github.com/chrisbanes/Android-PullToRefresh

According to the documentation it also has support for WebViews and the demo app works like a charm.

like image 82
Nicholas Avatar answered Mar 11 '23 12:03

Nicholas


This is now super easy by using the SwipeRefreshLayout. A good tutorial is available here: http://antonioleiva.com/swiperefreshlayout/

like image 30
Andreas Gohr Avatar answered Mar 11 '23 13:03

Andreas Gohr