[null,null,["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# About swipe-to-refresh\n\nTry the Compose way \nJetpack Compose is the recommended UI toolkit for Android. Learn how to pull to refresh in Compose. \n[Pull to refresh in Compose →](/develop/ui/compose/components/pull-to-refresh) \n**Figure 1.** A swipe-to-refresh action updating a weather app.\n\nEven if your app automatically updates its content on a regular basis, you can also let users\nrequest manual updates. For example, a weather forecasting app can let users refresh the app to get\nthe latest forecasts on demand. To provide a standard user experience for requesting updates, the\nAndroid platform includes the swipe-to-refresh design pattern, which lets users trigger an update\nwith a vertical swipe.\n\nDownload the sample apps:\n\n- [SwipeRefreshLayoutBasic](https://github.com/android/views-widgets-samples/tree/main/SwipeRefreshLayoutBasic)\n- [SwipeRefreshMultipleViews](https://github.com/android/views-widgets-samples/tree/main/SwipeRefreshMultipleViews/)\n\nLessons\n-------\n\n\n**[Add swipe-to-refresh to your app](/develop/ui/views/touch-and-input/swipe/add-swipe-interface)**\n:\n Learn how to provide swipe-to-refresh support in a\n [RecyclerView](/reference/androidx/recyclerview/widget/RecyclerView)\n and how to provide a more accessible refresh option using the action bar.\n\n\n**[Respond to a refresh request](/develop/ui/views/touch-and-input/swipe/respond-refresh-request)**\n:\n Learn how to respond to the swipe-to-refresh gesture and how to perform the same update from an\n action bar refresh action."]]