Android VuMeter

Additional

Language
Java
Version
1.0.15 (Aug 16, 2016)
Created
Aug 12, 2015
Updated
Jan 4, 2018
Owner
Hugo Gresse (HugoGresse)
Contributors
Hugo Gresse (HugoGresse)
knewzen
2
Activity
Badge
Generate
Download
Source code
APK file

Promotion

Android VuMeter library

A simple fake VuMeter (or equalizer) for Android that contain only two class and display the VuMeter with canvas and not views.

Features

  • customisable bar color, spacing, speed, stopSize and bar number
  • available xml attributes and getters/setters
  • match view given size and padding
  • stop, resume and play method

Usage

    <io.gresse.hugo.vumeterlibrary.VuMeterView
        android:layout_width="300dp"
        android:layout_height="300dp"
        android:paddingLeft="20dp"
        android:paddingRight="20dp"
        android:paddingBottom="40dp"
        android:id="@+id/vumeter"
        vumeter:vumeter_stopSize="5dp"
        vumeter:vumeter_speed="10"
        vumeter:vumeter_blockNumber="5"
        vumeter:vumeter_blockSpacing="20dp"
        vumeter:vumeter_backgroundColor="#33b5e5"
        vumeter:vumeter_startOff="false"/>

Don't forget to add the namespace fo the the vumeter attribute on your root view:

xmlns:vumeter="http://schemas.android.com/apk/res-auto"

See DemoApp for complete usage example.

See wiki for the available methods.

Download

Using Gradle:

compile 'io.gresse.hugo.vumeterlibrary:vumeterlibrary:1.0.15'

Hosted on jCenter only.

Contribution

Fill free to contribute to this library (fork and make a pull-request).

Author

Hugo Gresse

License

Copyright 2015 Hugo Gresse

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.