Skip to content

Most visited

Recently visited

navigation

Supporting Swipe-to-Refresh

Dependencies and prerequisites

  • Android 1.6 (API level 4) or later
  • Latest version of the Android v4 Support Library

Sample Apps

Even if your app automatically updates its content on a regular basis, you can allow users to request manual updates as well. For example, a weather forecasting app can allow users get the latest forecasts on demand. To provide a standard user experience for requesting updates, the Android platform includes the swipe-to-refresh design pattern, which allows users to trigger an update with a vertical swipe.

Note: This class requires the latest version of the Android v4 Support Library APIs. If you have not used the Support Library before, follow the instructions in the Support Library Setup document.

Lessons

Adding Swipe-to-Refresh To Your App
To replay the movie, click on the device screen
Learn how to provide swipe-to-refresh support in a ListView or GridView, and how to provide an accessible refresh option using the action bar.
Responding to a Refresh Request
Learn how to respond to the swipe-to-refresh gesture, and how to perform the same update from an action bar action.
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)