Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinearProgressIndicator - indicator color doesn't show up #4309

Open
benjaminreynoso opened this issue Sep 23, 2024 · 4 comments
Open

LinearProgressIndicator - indicator color doesn't show up #4309

benjaminreynoso opened this issue Sep 23, 2024 · 4 comments

Comments

@benjaminreynoso
Copy link

Description: We're using the com.google.android.material.progressindicator.LinearProgressIndicator component, and while calling the show() function and having the progress indicator setting indeterminate to true, it seems that only the default track color appears but not the animation, nor the color of the indicator.

Expected behavior: whenever the component is shown, the animation of the indeterminate setting should be active
Screenshot 2024-09-23 at 12 32 41 p m

Source code: The code snippet which is causing this issue

<com.google.android.material.progressindicator.LinearProgressIndicator
    android:id="@+id/fragmentTenantProgressIndicator"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:indeterminate="true"
    android:visibility="invisible"
    app:indicatorColor="?attr/colorPrimary"

Minimal sample app repro: just show the view.

Android API version: API LEVEL 34

Material Library version: 1.8.0-alpha01

Device: Samsung A03 API LEVEL 33

@pekingme
Copy link
Contributor

1.8.0 is pretty old. Could you try the newer version? There're quite some bug fixing and new features since then.

@benjaminreynoso
Copy link
Author

I can confirm that the bug remains active updating to the version 1.13.0-alpha06

@pekingme
Copy link
Contributor

Okay! Just to clarify the steps to reproduce the issue. You have the LPI in a layout XML file as shown in the snippet. Then call show() in code. It doesn't animate. Is that correct?

@benjaminreynoso
Copy link
Author

You're right, no further methods are called, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants