Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Wave background color is not updating #15

Closed
laurentiusandre opened this issue May 14, 2018 · 3 comments
Closed

Wave background color is not updating #15

laurentiusandre opened this issue May 14, 2018 · 3 comments
Labels

Comments

@laurentiusandre
Copy link

I'm trying to change the color of the bar after audio is played. After the audio played, filled color is changed successfully but the background color is not changing to the new color. Here's a code snippet:

            waveView.setOnProgressListener(new OnProgressListener() {
                @Override
                public void onStartTracking(float v) {

                }

                @Override
                public void onStopTracking(float v) {

                }

                @Override
                public void onProgressChanged(float v, boolean b) {
                    if (v == 100F)
                        waveView.setWaveColor(ContextCompat.getColor(itemView.getContext(), R.color.subtitleGray));
                }
            });

XML:

        <rm.com.audiowave.AudioWaveView
            android:id="@+id/wave"
            android:layout_width="match_parent"
            android:layout_height="28dp"
            android:layout_marginEnd="20dp"
            app:animateExpansion="false"
            app:chunkWidth="3dp"
            app:chunkHeight="28dp"
            app:minChunkHeight="2dp"
            app:chunkSpacing="1dp"
            app:chunkRadius="2dp"
            app:waveColor="#ef4f35" />

Tested on Moto G with 7.1.2. Any fixes/workaround is appreciated!

@alxrm
Copy link
Owner

alxrm commented May 15, 2018

@laurentiusandre I guess I know(actually I just know) where the issue comes from, sorry for the slow response, maybe I'll fix it in the following days

That's a good catch, thanks!

@alxrm
Copy link
Owner

alxrm commented May 24, 2018

Fixed in d779d42

@alxrm alxrm closed this as completed May 24, 2018
@laurentiusandre
Copy link
Author

Works! Thanks 👍

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

No branches or pull requests

2 participants