在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:VoiceWaveView开源软件地址:https://gitee.com/xfans/VoiceWaveView开源软件介绍:VoiceWaveViewa voice wave view library一个音频条形图的view,支持柱状音频,折线音频的样式 https://github.com/xfans/VoiceWaveView ScreenshotDependenciesallprojects { repositories { ... maven { url 'https://jitpack.io' } } } implementation 'com.github.xfans:VoiceWaveView:1.0.2' Use属性
<me.xfans.lib.voicewaveview.VoiceWaveView android:id="@+id/voiceWaveView0" android:layout_width="wrap_content" android:layout_height="150dp" app:lineColor="@color/colorPrimary" app:waveMode="left_right" android:gravity="center" /> voiceWaveView?.apply { showGravity = Gravity.RIGHT or Gravity.TOP waveMode = WaveMode.UP_DOWN lineWidth = 30f lineSpace = 15f duration = 500 lineColor = Color.parseColor("#F56B00") addHeader(4) addHeader(14) addBody(27) addBody(17) addBody(38) addBody(91) addBody(38) addBody(24) addBody(8) addBody(60) addBody(38) addBody(14) addBody(8) addFooter(4) addFooter(2) start() } LicenseLicensed 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.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License. |
请发表评论