{"id":13989515,"url":"https://github.com/iammert/InteractivePlayerView","last_synced_at":"2025-07-22T11:30:37.179Z","repository":{"id":36537543,"uuid":"40843359","full_name":"iammert/InteractivePlayerView","owner":"iammert","description":"Custom android music player view.","archived":false,"fork":false,"pushed_at":"2017-09-25T07:05:37.000Z","size":1310,"stargazers_count":742,"open_issues_count":12,"forks_count":161,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-05-24T18:05:20.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iammert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-16T21:53:21.000Z","updated_at":"2025-05-02T16:33:10.000Z","dependencies_parsed_at":"2022-09-20T05:15:30.389Z","dependency_job_id":null,"html_url":"https://github.com/iammert/InteractivePlayerView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iammert/InteractivePlayerView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FInteractivePlayerView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FInteractivePlayerView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FInteractivePlayerView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FInteractivePlayerView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iammert","download_url":"https://codeload.github.com/iammert/InteractivePlayerView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FInteractivePlayerView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266483440,"owners_count":23936343,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-08-09T13:01:42.869Z","updated_at":"2025-07-22T11:30:36.772Z","avatar_url":"https://github.com/iammert.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# InteractivePlayerView\n[![Join the chat at https://gitter.im/iammert/InteractivePlayerView](https://img.shields.io/badge/GITTER-join%20chat-green.svg)](https://gitter.im/iammert/InteractivePlayerView) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-InteractivePlayerView-green.svg?style=flat)](https://android-arsenal.com/details/1/2332)\n\nCustom android music player view.\n\n# Screen\n\n\u003cimg src=\"https://raw.githubusercontent.com/iammert/InteractivePlayerView/master/art/art.png\"/\u003e\n\nCheck it on [youtube](https://www.youtube.com/watch?v=9cN5PCjUioM)\n\n# Usage(XML)\n\nDefine it in your xml file.\n\n```xml\n \u003cco.mobiwise.library.InteractivePlayerView\n            android:id=\"@+id/ipv\"\n            android:layout_width=\"230dp\"\n            android:layout_height=\"230dp\"\n            app:imageCover=\"@drawable/imagetest\"\n            app:emptyColor=\"#aaffffff\"\n            app:loadedColor=\"#fff44336\"\n            app:selectedAction1=\"@drawable/shuffle_selected\"\n            app:selectedAction2=\"@drawable/like_selected\"\n            app:selectedAction3=\"@drawable/replay_selected\"\n            app:unselectedAction1=\"@drawable/shuffle_unselected\"\n            app:unselectedAction2=\"@drawable/like_unselected\"\n            app:unselectedAction3=\"@drawable/replay_unselected\" /\u003e\n```\n\n**IMPORTANT** : I designed shuffle, like and replay icons for my demo app. You can create your by using\n[Flat Icon](http://flaticon.com) website. Or, if you want to use mine instead of creating new icon set, then you can download my action set from [here](https://github.com/iammert/InteractivePlayerView/blob/master/demoIcons.zip).\n\n\nFind view and set necessary values.\n\n```java\nInteractivePlayerView ipv = (InteractivePlayerView) findViewById(R.id.ipv);\nipv.setMax(123); // music duration in seconds.\nipv.setOnActionClickedListener(new OnActionClickedListener() {\n            @Override\n            public void onActionClicked(int id) {\n                switch (id){\n                    case 1:\n                        //Called when 1. action is clicked.\n                        break;\n                    case 2:\n                        //Called when 2. action is clicked.\n                        break;\n                    case 3:\n                        //Called when 3. action is clicked.\n                        break;\n                    default:\n                        break;\n                }\n            }\n        });\n```\n\nStart and stop depends on your player.\n\n```java\nipv.start();\nipv.stop();\n```\n\n# Usage (Java)\n\n```java\nipv.setCoverDrawable(R.drawable.imagetest);\nipv.setActionOneImage(R.drawable.shuffle_selected, R.drawable.shuffle_unselected);\nipv.setActionTwoImage(R.drawable.like_selected, R.drawable.like_unselected);\nipv.setActionThreeImage(R.drawable.replay_selected, R.drawable.replay_unselected);\nipv.setProgressEmptyColor(Color.GRAY);\nipv.setProgressEmptyColor(Color.BLACK);\n```\n\n# Useful methods\n\n```java\n//Loads image from url (By Picasso)\nipv.setCoverURL(\"http://abc.xyz/1.png\");\n```\n\n```java\n//edit your current progress\nipv.setProgress(12);\nint currentProgress = ipv.getProgress();\n```\n\n```java\n//Check if any action selected or not. Or edit.\nboolean isSelected = ipv.isAction1Selected();\nipv.setAction1Selected(true);\n```\n\n```java\n//Check if ipv is playing\nipv.isPlaying();\n```\n\n# Import\n\nProject build.gradle\n\n```\nrepositories {\n    maven {\n        url \"https://jitpack.io\"\n    }\n}\n```\n\nModule build.gradle\n```\ndependencies {\n\t   compile 'com.github.iammert:InteractivePlayerView:f4f6490290'\n}\n```\n\n# Design\n\n[Here is original design](https://www.pinterest.com/pin/400187116866664878/)\n\n# Library used\n\n[Picasso by Square](http://square.github.io/picasso/)\n\n\nLicense\n--------\n\n\n    Copyright 2015 Mert Şimşek.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiammert%2FInteractivePlayerView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiammert%2FInteractivePlayerView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiammert%2FInteractivePlayerView/lists"}