Droid-vizu 旨在通过轻松切换渲染器来提供定制的可视化效果,从而实现炫酷的效果。
Droid-vizu aims to provide cool visualization effects for any Android audio project. Maintainable modular design allows users to easily swap Renderer class to get corresponding effects.
repositories {
jcenter()
}
dependencies {
compile 'info.kimjihyok:droid-vizu:${droid-vizu}'
}
Simply Provide RippleVisualizerViw with an prepared Android MediaPlayer and set with a corresponding renderer
…Detailed information about parameters could be found in the source code!
renderDemoView.setCurrentRenderer(new ColorfulBarRenderer(8, PaintUtil.getBarGraphPaint(Color.BLUE)
, Color.parseColor("#FF0033")
, Color.parseColor("#801AB3")) new BarRenderer(16, PaintUtil.getBarGraphPaint(Color.WHITE)); new LineRenderer(PaintUtil.getLinePaint(Color.YELLOW));// It is required to stop at onStop and to destory at onDestory to prevent memory leak and unexpected events
@Override
protected void onStop() {
super.onStop();
soundPlayerView.onStop();
renderDemoView.stop();
}
@Override
protected void onDestroy() {
super.onDestroy();
soundPlayerView.onDestroy();
renderDemoView.destroy();
}暂无开放 Issues,或尚未同步最近议题。