Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

声音大小显示演示项目


##预览

预览

##描述

这是一个多个模块API的使用演示项目,包括声音的大小采集、自定义曲线图、感光API的使用等

##使用说明

####XML布局文件

<com.tt.voicecurve.CurveView
        android:id="@+id/curve"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true" />

####页面中使用

        mCurveView = (CurveView) this.findViewById(R.id.curve);
        mButton = (Button) this.findViewById(R.id.button1);
        mButton.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View arg0) {
                if (mIsStop) {
                    recordThread = new RecordThread(mHandler);
                    recordThread.startRecord();
                    mCurveView.clearScreen();
                    mButton.setText("停止");
                    mIsStop = false;
                } else {
                    recordThread.stopRecord();
                    mButton.setText("开始");
                    mIsStop = true;
                }
            }
        });

##更多

##License

Copyright (c) 2014 Kyson

Licensed under the Apache License, Version 2.0

Comments ( 0 )

Sign in for post a comment

About

自定义view,根据声音绘制曲线 spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more