在build.gradle引入 implementation 'io.github.zhangqinhao:MoVoiceWave:1.0.2'
<com.monke.movoicewavelib.MoVisualizerView
android:id="@+id/movv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:padding="3dp" />
moVisualizerView.setUiType(0); //设置样式 0~7
moVisualizerView.updateDataWithAnim(fft, 1); //更新数据 byte[]数组,数据取值密度
mVisualizer.release(); //onDestory
具体用法参照App代码