Skip to content

CuteLibs/CuteVisualizer

Repository files navigation

CuteVisualizer

platform API JitPack GitHub license

GitHub forks GitHub issues GitHub stars GitHub contributors

A simple Music Visualizer/Equalizer View for Android

Purpose

CuteVisualizer is an Android Audio Visualizer Libaray

It's open-source and free to use. Give it a try.!

Note:

  • It's an auto visualizer
  • It doesn't have anything to do with the music it's playing.

What's New

  • CuteVisualizer First Release

More changes in Release Tab.

Specs

  • Minimum SDK 21
  • Target SDK 31
  • AndroidX Library
  • Gradle 7.0.4
  • Java 11

Screenshots

Click to View High Quality

Demo

Try Demo App to see how it actually works

Prerequisites

Old Method

Add this in your root build.gradle file (not your module build.gradle file):

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}

New Method

Add this in your root settings.gradle file

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
}

Dependencies

Add this to your module's build.gradle file (make sure the version matches the JitPack badge above):

dependencies {
	...
	implementation 'com.github.ahmmedrejowan:CuteVisualizer:1.0'
}


Usage

XML

   <com.rejowan.cutevisualizer.CuteVisualizer
        android:id="@+id/equalizerView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        custom:animDuration="3000"
        custom:foregroundColor="@color/colorPrimary" />

Customization

Duration of Animation for Each Cycle

        custom:animDuration="3000"

Change Colors for Bar (Only works with the colors from xml/colors.xml files color)

        custom:foregroundColor="@color/colorPrimary"

Java

Intialize
        
	CuteVisualizer cuteVisualizer = findViewById(R.id.equalizerView);
Start Animate
        
	cuteVisualizer.animateBars();
Stop Animate
	
	cuteVisualizer.stopBars();

Status

	
	cuteVisualizer.isAnimating();
Note
  • You can call stopBars(); after initialization to stop them showing full size.

Contribute

Please fork this repository and contribute back using pull requests.

Any contributions, large or small, major features, bug fixes, are welcomed and appreciated but will be thoroughly reviewed .

Let me know which features you want in the future in Request Feature tab.

If this project helps you a little bit, then give a to Star ⭐ the Repo.


Credits

Created with Love by K M Rejowan Ahmmed (@ahmmedrejowan)

Reach me @

License

Copyright 2021 K M Rejowan Ahmmed (ahmmedrejowan)

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.