Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

AlbumCoverEqView stays black #1

Open
dragitpro opened this issue Apr 14, 2022 · 0 comments
Open

AlbumCoverEqView stays black #1

dragitpro opened this issue Apr 14, 2022 · 0 comments

Comments

@dragitpro
Copy link

dragitpro commented Apr 14, 2022

Hello , First all thanks very much for your code, I tried to use it on my project (using java) with but it doesn't work (only have black square view)

    <com.github.naz013.albumcoverequalizer.AlbumCoverEqView
        android:id="@+id/albumView"
        android:layout_width="256dp"
        android:layout_height="256dp"
        android:layout_gravity="center_horizontal"
        android:layout_marginTop="32dp"
        app:acv_animationSpeed="slow"
        app:acv_barColor="?colorPrimary"
        app:acv_dividerColor="?colorPrimary"
        app:acv_dividerWidth="2dp"
        app:acv_numberOfBars="5" />

  float f[];
            // MEMORY ALLOCATION FOR JAVA FLOAT ARRAY
            f = new float[5];
            // ASSIGNING ELEMENTS TO JAVA FLOAT ARRAY
            f[0] = 77.50f;
            f[1] = 77.50f;
            f[2] = 77.50f;
            f[3] = 77.50f;
            f[4] = 77.50f;

            AlbumCoverEqView albumView = findViewById(R.id.albumView);
            albumView.setAnimationSpeed(AlbumCoverEqView.ANIMATION_SLOW);
            albumView.setWaveHeights(f);
            albumView.setCoverImage(bitmap);
            albumView.setNumberOfBars(5);
            albumView.showFullCover();

Do you have an idea of what i'm missing ? Thanks

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

No branches or pull requests

1 participant