Mini equalizer for Android apps.
This Android Library project is created to let you use a animated equalizer inside your music related apps.
Supported Android versions: Android 4.0+
Add this to your dependencies:
There is some custom attributes you can adjust from the xml: - foregroundColor : the equalizer bars color (default is black) - animDuration : (millisecs) the animation follows a pattern and the number of loops is infinite. To set the duration of each loop, use this attribute.
To start animating the equalizer you should add:
EqualizerView equalizer = (EqualizerView) findViewById(R.id.equalizer_view); equalizer.animateBars(); // Whenever you want to tart the animation equalizer.stopBars(); // When you want equalizer stops animating
And... that's it!, so simple.
Every idea, fork and suggestion is very welcome.
Claudia Luque Fernández @claucookie