Giter Site home page Giter Site logo

ngel12 / mini-equalizer-library-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from claucookie/mini-equalizer-library-android

0.0 2.0 0.0 1.09 MB

Mini equalizer for Android apps.

License: GNU General Public License v2.0

Java 65.54% XML 34.46%

mini-equalizer-library-android's Introduction

Mini Equalizer Library for Android

This Android Library project is created to let you use a animated equalizer inside your music related apps.

Supported Android versions: Android 4.0+

How to use it

Add this to your dependencies:

compile 'com.github.claucookie.miniequalizer:library:1.0.0'

Layout

    <es.claucookie.miniequalizerlibrary.EqualizerView
        xmlns:custom="http://schemas.android.com/apk/res-auto"
            android:id="@+id/equalizer_view"
            android:layout_width="30dp"
            android:layout_height="30dp"
            custom:foregroundColor="@color/link_text_material_light"
            custom:animDuration="3500"/>

Attributes

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.

Activity

Initialization + animation

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.

Example of and app using the equalizer

Contribution

Every idea, fork and suggestion is very welcome.

Author

Claudia Luque Fernández @claucookie

License

http://opensource.org/licenses/MIT

mini-equalizer-library-android's People

Contributors

claucookie avatar

Watchers

James Cloos avatar Angelo Nania avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.