{"id":18439107,"url":"https://github.com/jay-goo/recordwaveview","last_synced_at":"2025-04-07T21:32:13.597Z","repository":{"id":127017604,"uuid":"96621421","full_name":"Jay-Goo/RecordWaveView","owner":"Jay-Goo","description":"a beatiful wave animation for recording ,support android Mp3 record","archived":false,"fork":false,"pushed_at":"2017-07-09T15:47:24.000Z","size":809,"stargazers_count":72,"open_issues_count":1,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T00:51:20.171Z","etag":null,"topics":["android","animation","mp3-recorder","record","wave"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jay-Goo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-08T13:42:24.000Z","updated_at":"2025-01-21T16:56:57.000Z","dependencies_parsed_at":"2023-07-08T05:02:09.297Z","dependency_job_id":null,"html_url":"https://github.com/Jay-Goo/RecordWaveView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Goo%2FRecordWaveView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Goo%2FRecordWaveView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Goo%2FRecordWaveView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Goo%2FRecordWaveView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jay-Goo","download_url":"https://codeload.github.com/Jay-Goo/RecordWaveView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247732641,"owners_count":20986893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","animation","mp3-recorder","record","wave"],"created_at":"2024-11-06T06:23:24.755Z","updated_at":"2025-04-07T21:32:13.589Z","avatar_url":"https://github.com/Jay-Goo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RecordWaveView\n### 一款漂亮的波浪录音动画，附带封装好的MP3录音控件\n#### 喜欢请Star，谢谢！\n\n----------\n\n# 效果图（实际效果更好）\n\n![image](https://github.com/Jay-Goo/RecordWaveView/blob/master/gif/2017-07-09%2023_10_44.gif)\n\n----------\n# Usage\n## 项目依赖\n```\n allprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n\t\n\tdependencies {\n\t        compile 'com.github.Jay-Goo:RecordWaveView:v1.0.0'\n\t}\n```\n\n\n----------\n\n\n## RecordWaveView \n#### 波浪动画\n```\n//开始动画\nmRecordWaveView.startAnim();\n//结束动画\nmRecordWaveView.stopAnim();\n\n@Override\nprotected void onResume() {\n\tsuper.onResume();\n    mRecordWaveView.onResume();\n}\n\n@Override\nprotected void onPause() {\n    super.onPause();\n    mRecordWaveView.onPause();\n}\n```\n\n\n----------\n\n\n## Mp3WaveRecorder \n#### 封装波浪动画的MP3Recorder\n```\n//开始动画\nmMp3WaveRecorder.start();\n\n//结束动画\nmMp3WaveRecorder.stop();\n\n//清除录音缓存，你可以在onDestroy()中做\nmMp3WaveRecorder.clearCache();\n\n//录音状态监听\nmMp3WaveRecorder.setOnRecordListener(new Mp3WaveRecorder.OnRecordListener() {\n            @Override\n            public void onStart() {\n            //开始录音\n            }\n\n            @Override\n            public void onStop(File file) {\n            //结束录音，返回录音文件\n            }\n        });\n@Override\nprotected void onResume() {\n\tsuper.onResume();\n    mMp3WaveRecorder.onResume();\n}\n\n@Override\nprotected void onPause() {\n    super.onPause();\n    mMp3WaveRecorder.onPause();\n}\n```\n----------\n\n\n##  Attributes\n\nattr | format | description\n-------- | ---|---\nbackgroundColor|color|View背景颜色\nfirstPathColor|color|上曲线颜色\nsecondPathColor|color|下曲线颜色\ncenterPathColor|color|中间曲线颜色\nmoveSpeed|float|曲线移动速度，数值越小，速度越快，默认500F，向右移，负数则为向左移\nballSpeed|float|小球移动速度，数值越小，速度越快，默认150F\nsimplingSize|integer|采样点数量，越大越精细，默认64\namplitude|dimension|振幅，默认为宽度的1/8\nshowBalls|boolean|是否显示小球，默认显示\n\n\n----------\n\n# 更多用法\n### 1、默认启动动画\n\n```\nmRecordWaveView.onResume(boolean isAutoStartAnim);\n```\n\n### 2、Mp3WaveRecorder默认封装了点击事件，如果你不想使用，可以`setEnable(false)`屏蔽该事件即可。\n\n### 3、关于MP3Recorder，请传送至[AndroidMP3Recorder](https://github.com/Jay-Goo/AndroidMP3Recorder)了解更多\n\n# 致谢\n[Bugly—以Tencent OS录音机波形动画为实例](https://mp.weixin.qq.com/s?__biz=MzA3NTYzODYzMg==\u0026mid=2653577211\u0026idx=1\u0026sn=2619c7df79f675e45e87891b7eb17669\u0026scene=4#wechat_redirect)\n\n[DrkCore—以Tencent OS录音机波形为例](http://blog.csdn.net/drkcore/article/details/51822818)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay-goo%2Frecordwaveview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjay-goo%2Frecordwaveview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay-goo%2Frecordwaveview/lists"}