Simple equalizer visualization view for Android OS
Design by Samuel C.: Dribble
Screenshot
Download latest version with Gradle:
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.naz013:album-cover-equalizer-view:1.0'
}
Default:
<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="15" />
And then use:
val array = newFloatArray(albumView.getNumberOfBars())
albumView.setWaveHeights(array) //Accept array of floats with values from 0.0 to 100.0
Copyright 2020 Nazar Sukhovych
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.