{"id":3489,"url":"https://github.com/alxrm/audiowave-progressbar","last_synced_at":"2025-10-09T08:32:03.634Z","repository":{"id":43242427,"uuid":"71729354","full_name":"alxrm/audiowave-progressbar","owner":"alxrm","description":"Lightweight audiowave progressbar for Android","archived":true,"fork":false,"pushed_at":"2020-07-07T15:40:51.000Z","size":1436,"stargazers_count":496,"open_issues_count":6,"forks_count":84,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-01-27T05:34:23.359Z","etag":null,"topics":["android","audio","kotlin","milf","progressbar","view","waveform"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alxrm.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}},"created_at":"2016-10-23T20:58:11.000Z","updated_at":"2025-01-08T19:46:50.000Z","dependencies_parsed_at":"2022-09-11T16:31:49.293Z","dependency_job_id":null,"html_url":"https://github.com/alxrm/audiowave-progressbar","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/alxrm/audiowave-progressbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxrm%2Faudiowave-progressbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxrm%2Faudiowave-progressbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxrm%2Faudiowave-progressbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxrm%2Faudiowave-progressbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alxrm","download_url":"https://codeload.github.com/alxrm/audiowave-progressbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxrm%2Faudiowave-progressbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001053,"owners_count":26082991,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","audio","kotlin","milf","progressbar","view","waveform"],"created_at":"2024-01-05T20:16:42.959Z","updated_at":"2025-10-09T08:32:03.279Z","avatar_url":"https://github.com/alxrm.png","language":"Kotlin","funding_links":[],"categories":["Libraries","Kotlin"],"sub_categories":["GUI"],"readme":"# Audiogram\n[![](https://jitpack.io/v/alxrm/audiowave-progressbar.svg)](https://jitpack.io/#alxrm/audiowave-progressbar)\n[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)]()\n\nSuper lightweight audiowave progressbar written in Kotlin\n\n\n\n\u003cimg src=\"imgs/wave.gif\"/\u003e\n\n\n## Getting started\n\nAdd to your root build.gradle:\n```Groovy\nallprojects {\n\trepositories {\n\t    ...\n\t    maven { url \"https://jitpack.io\" }\n\t}\n}\n```\n\nAdd the dependency:\n```Groovy\ndependencies {\n  implementation 'com.github.alxrm:audiowave-progressbar:0.9.2'\n}\n```\n\n## Attrs\n|attr|format|description|\n|---|:---|:---:|\n|waveColor|color|with this color chunks will be filled|\n|chunkWidth|dimension|every chunk will have this width|\n|chunkHeight|dimension|maximum height all the chunks can be|\n|minChunkHeight|dimension|minimum height all the chunks can be|\n|chunkSpacing|dimension|spacing between chunks|\n|chunkRadius|dimension|how much corners of every chunk will be rounded|\n|progress|float|should be 0..100, it's float so you can easily animate this|\n|animateExpansion|boolean|toggle the animated expansion|\n|touchable|boolean|toggle to use it as a seekbar, default value is `true`|\n\n__Note: If you are going to place this in a RecyclerView item, you have to set `animateExpansion` to `false`, otherwise you'll see an incredibly laggy scroll (check out the example)__\n\n## In code\n\nSettle the wave somewhere in your XML like this:\n\n```xml\n\u003crm.com.audiowave.AudioWaveView\n    android:id=\"@+id/wave\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"32dp\"\n    android:layout_margin=\"16dp\"\n    app:animateExpansion=\"false\"\n    app:chunkWidth=\"3dp\"\n    app:chunkHeight=\"24dp\"\n    app:minChunkHeight=\"2dp\"\n    app:chunkSpacing=\"1dp\"\n    app:chunkRadius=\"1dp\"\n    app:touchable=\"true\"\n    app:waveColor=\"@android:color/white\"\n    /\u003e\n```\n\n## API\n\nSet raw byte array asynchronously \n\n```java\n// does downsampling in O(N) and shows the animation you see in a gif above (the inflation-like one)\nsetRawData(byte[] data);\n\n// you also have the ability to listen, when does the downsampling complete\nsetRawData(byte[] data, OnSamplingListener callback);\n```\n\nIn case you have a scaled byte array you want to draw, i. e. an array whose size is the amount of chunks to draw\n\n\n```java\n// instantly redraws the wave without async downsampling process\nsetScaledData(byte[] scaledData);\n```\n\nYou can use it like a `Seekbar`, it reacts on touches, just attach listener\n\n```java\nwave.setOnProgressListener(OnProgressListener listener);\n```\n\n__Note:__ that `setOnProgressListener` is a Java style API and with Kotlin you have to set it like this:\n\n```kotlin\nwave.onProgressListener = object : OnProgressListener {...}\n```\n\nThis listener has 3 methods like a built-in `Seekbar`\n\n```java\nvoid onStartTracking(float progress) {\n  // invokes when user touches the view\n}\n\nvoid onStopTracking(float progress) {\n  // invokes when user releases the touch\n}\n\nvoid onProgressChanged(float progress, boolean byUser) {\n  // invokes every time the progress's been changed\n}\n```\n\n__Kotlin__ users can listen `Seekbar` event in a more convenient and clean way with __properties__:\n\n```kotlin\nwave.onStopTracking = {\n  Log.d(\"wave\", \"Progress set: $it\")\n}\n\nwave.onStartTracking = {\n  Log.d(\"wave\", \"Started tracking from: $it\")\n}\n\nwave.onProgressChanged = {progress, byUser -\u003e\n  Log.d(\"wave\", \"Progress set: $progress, and it's $byUser that user did this\")\n}\n```\n\n## Contribution\n\nThere are some features(like better precision) I am about to implement, but a little bit later. \nIf you'd like to help, you are always free to send pull requests or issues if you only want to suggest something \n\n**Note:** All your pull requests should be written in kotlin\n\n## License\n\n    MIT License\n\n    Copyright (c) 2016 Alexey Derbyshev\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falxrm%2Faudiowave-progressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falxrm%2Faudiowave-progressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falxrm%2Faudiowave-progressbar/lists"}