Questions tagged [pull-to-refresh]

Pull To Refresh is a UI interaction wherein a user pulls down on a scrolling view or list, beyond the upper bounds of the view, and releases it in order to refresh the contents of that view or list.

Pull To Refresh is a UI interaction wherein a user pulls down on a scrolling view or list, beyond the upper bounds of the view, and releases it in order to refresh the contents of that view or list.

This interaction has been used in many published apps, mainly for mobile devices, and has become one of the most widely used methods of allowing a user to refresh their current view.

Pull To Refresh libraries:

  • Android-PullToRefresh - Implementation of the Pull-to-Refresh UI Pattern for Android
  • Three20 - Three20 is an Objective-C library for iPhone developers (contains a pull to reload component)
  • EGOTableViewPullRefresh - A similar control to the pull down to refresh control created by atebits in Tweetie 2
  • ODRefreshControl - A pull down to refresh control like the one in Apple's iOS6 Mail App
677 questions
10
votes
3 answers

Pull to Refresh with WKWebView

I'm trying to add pull to Refresh to WKWebView. Where in this code would I add something that would allow me to trigger pull to refresh? I haven't found any viable ways to add it to my code so you won't find any attempts by me to accomplish this in…
Nigel
  • 103
  • 1
  • 4
10
votes
2 answers

mobile: how to prevent pull-to-refresh

How to prevent pull-to-refresh in web applications for Chrome android? I tried the answers from Disabling android's chrome pull-down-to-refresh feature body { overflow-y: hidden; } or body { touch-action: none; } It did not work. any one has…
Dave
  • 759
  • 2
  • 9
  • 31
9
votes
3 answers

Implementing pull-to-refresh in Flutter with Riverpod

I am new to Riverpod and trying to implement pull to refresh with Riverpod in my Flutter app and can't seem to find any good tutorial online. Has anyone implemented pull-to-refresh in their Flutter app while using Riverpod. I have looked for…
9
votes
2 answers

pulltorefresh.js - Disable temporarily

I am using this PullToRefresh plugin: https://github.com/BoxFactura/pulltorefresh.js#api It works well but I have a popup on my page with div inline scroll. The problem is that when I want to scroll up (in the div) the PullToRefresh is triggered. Is…
Peter
  • 11,413
  • 31
  • 100
  • 152
9
votes
3 answers

Xamarin Forms ListView Programatic Refresh Not Stopping on Android When Page Loaded

I have Portable project in Visual Studio 2015 with a ListView that gets populated with some data via an API call through the following function refreshData: async Task refreshData() { myListView.BeginRefresh(); var apiCallResult = await…
9
votes
11 answers

Pull to refresh on UITableView Inside a UIViewController

I am trying to implement the pull to refresh functionality in my application. The architecture is such that the there is a UITableView inside a UIViewController. I want to be able to refresh the tableview on pull down. I tried the code below in the…
Hassan Zaheer
  • 1,361
  • 2
  • 20
  • 34
9
votes
1 answer

How can I use pull-to-refresh functionality in a PhoneGap application without iScroll?

I have a PhoneGap project set up for iPhone, Android and WP8. To refresh the content of the UIWebView I'd like to offer pull-to-refresh functionality to the user. Due to other restrictions I can't use a JavaScript-solution like iScroll. Is there a…
Timo Ernst
  • 15,243
  • 23
  • 104
  • 165
8
votes
1 answer

Scroll To Refresh on Lion

Is it possible to get the "pull-to-refresh" scrollview, present in many applications on iOS, on Lion? I have been able to get my view in the "bounce area" of the scroll view and detect when to refresh. My problem is keeping the view scrolled up…
Alex Zielenski
  • 3,591
  • 1
  • 26
  • 44
8
votes
4 answers

How to use RefreshIndicator to update FutureBuilder state?

I am using FutureBuilder to show the data loaded from server. I want to show the loading state only once when the app starts, that is why I am calling the API from initState. The data I get from server may change and to reflect the change in UI, I…
8
votes
6 answers

Pull to refresh not working in iOS WebView

I've implemented a straight forward WKWebView in iOS. var refreshControl = UIRefreshControl() refreshControl.addTarget(self, action: Selector("refreshWebView"), forControlEvents: UIControlEvents.ValueChanged) This is in viewDidLoad() And the…
RandomGuy
  • 343
  • 3
  • 10
8
votes
4 answers

How to refresh a UIWebView by a "pull down and release" gesture?

I know that this is possible in the Tweetie for iPhone or the xkcd iPhone app, but they are using a table. Any idea if this can be done for a simple UIWebView as well? I'm aware of the Javascript suggestions in this SO question, but what about…
phi
  • 10,634
  • 6
  • 53
  • 88
8
votes
1 answer

Can I use Pull to Refresh without using ScrollView/ListView?

I tried to implement Pull to Refresh in my app. I wrapped my xml code with android.support.v4.widget.SwipeRefreshLayout and it's working, but the GUI doesn't look good. When I pull down, I should see the regular animated circle icon with my defined…
Json
  • 655
  • 10
  • 27
8
votes
2 answers

simple example on how to use SwipeRefreshLayout with ListView

Does anyone have a simple example on how to use SwipeRefreshLayout with a ListView? Here is my situation: I have a class SynchDogs that pulls data from the server. So that class serves as the source for my adapter. I want to use SwipeRefreshLayout…
Katedral Pillon
  • 14,534
  • 25
  • 99
  • 199
8
votes
4 answers

PullToRefresh list with pinned section header

Does anyone has practice of using Pull to refresh list with Pinned section header? I use Android-PullToRefresh lib with my list and I want to add ability of showing pinned section header at the top of list. I used PinnedHeaderListView lib in another…
dimetil
  • 3,851
  • 2
  • 29
  • 47
8
votes
3 answers

Horizontal UICollectionView with UIRefreshControl

I have a custom horizontal collection view that has 1 row and I want to add pull to refresh functionality which, by default, appears above my row of cells. I would like the user to be able to pull the collection view from left to right to activate…
1 2
3
45 46