material-components / material-components/material-components-android
[LoadingIndicator] Usage with SwipeRefreshLayout
@pekingme is already working on this.
Since Aug 1, 2025.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
In my app (Java), I'm currently using `SwipeRefreshLayout` to refresh a `Recyclerview` ("pull-to-refresh"). While the list is refreshed, I currently show a Circular Progress Indicator.
Is it possible to replace the standard Circular Progress Indicator used by `SwipeRefreshLayout` with the new `LoadingIndicator` similar to the example shown in the M3 specs? This M3 Expressive example shows a Loading Indicator while the user is pulling down the list in order to refresh it:
[https://m3.material.io/components/loading-indicator/overview](https://m3.material.io/components/loading-indicator/overview)
Or is there another solution that you would propose to be closer aligned to M3 Expressive for my use-case?
I'm also not sure how to interprete the following sentence: "The loading indicator is used in pull-to-refresh on Jetpack Compose only." as mentioned in the [guidelines](https://m3.material.io/components/loading-indicator/guidelines).
Many thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.