项目作者: HeZaiJin

项目描述 :
Android animated recording view
高级语言: Java
项目地址: git://github.com/HeZaiJin/AnimatedRecordingView.git
创建时间: 2017-01-09T07:21:26Z
项目社区:https://github.com/HeZaiJin/AnimatedRecordingView

开源协议:

下载


AnimatedRecordingView

Android animated recording view .中文版

Preview

预览

Gradle

  1. compile 'com.haozhang.libary:android-animated-recording-view:1.0'

How to use

Use in xml

  1. <com.haozhang.lib.AnimatedRecordingView
  2. android:id="@+id/recording"
  3. android:layout_width="match_parent"
  4. android:layout_height="200px"
  5. ></com.haozhang.lib.AnimatedRecordingView>

Use in method

  1. AnimatedRecordingView mRecordingView = (AnimatedRecordingView) findViewById(R.id.recording);
  2. // start recording animation
  3. mRecordingView.start();
  4. // set the mic volume
  5. float vol;
  6. mRecordingView.setVolume(vol);
  7. // start loading animation
  8. mRecordingView.loading();
  9. // start finished animation
  10. mRecordingView.stop();

License

  1. Copyright 2016 Hand HaoZhang
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.