A simple fake VuMeter (or equalizer) for Android that contain only two class and display the VuMeter with canvas and not views.
- 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
<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.
Using Gradle:
compile 'io.gresse.hugo.vumeterlibrary:vumeterlibrary:1.0.17'
Hosted on jCenter only.
Fill free to contribute to this library (fork and make a pull-request).
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.