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

AlbumCoverEqView stays black #1

@dragitpro

Description

@dragitpro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions