material-components / material-components/material-components-android

[LoadingIndicator] Usage with SwipeRefreshLayout

Open
#4,787 9 comments 11 reactions 1 assignee View on GitHub

@pekingme is already working on this.

Since Aug 1, 2025.

feature request Widget: ProgressIndicator
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.