{"id":18473134,"url":"https://github.com/trycatchx/videoprogressview","last_synced_at":"2025-04-08T12:31:49.291Z","repository":{"id":57735443,"uuid":"261416113","full_name":"trycatchx/VideoProgressView","owner":"trycatchx","description":"Moon brightness animation + volume animation. Suitable for playing video to adjust volume and brightness","archived":false,"fork":false,"pushed_at":"2021-07-23T06:43:53.000Z","size":15883,"stargazers_count":63,"open_issues_count":1,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-23T12:32:47.806Z","etag":null,"topics":["light-progress-view","moon-animation","moonview","progress-view","volume-view"],"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/trycatchx.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":"2020-05-05T09:42:49.000Z","updated_at":"2024-09-21T21:33:58.000Z","dependencies_parsed_at":"2022-08-23T15:21:54.433Z","dependency_job_id":null,"html_url":"https://github.com/trycatchx/VideoProgressView","commit_stats":null,"previous_names":["zhangchaojiong/videoprogressview"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycatchx%2FVideoProgressView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycatchx%2FVideoProgressView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycatchx%2FVideoProgressView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycatchx%2FVideoProgressView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trycatchx","download_url":"https://codeload.github.com/trycatchx/VideoProgressView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247842634,"owners_count":21005317,"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":["light-progress-view","moon-animation","moonview","progress-view","volume-view"],"created_at":"2024-11-06T10:23:45.746Z","updated_at":"2025-04-08T12:31:48.048Z","avatar_url":"https://github.com/trycatchx.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LightProgressView + VolumeProgressView\n![Build Status](https://img.shields.io/badge/build-passing-brightgreen) ![java](https://img.shields.io/badge/language-java-Borange.svg)  ![java](https://img.shields.io/badge/version-1.0.0-orange.svg)\n\n[Englist](https://github.com/zhangchaojiong/VideoProgressView/blob/master/README.md) | [中文版本](https://github.com/zhangchaojiong/VideoProgressView/blob/master/README_zh.md)\n\u003eA creative brightness animation, which controls the brightness of the mobile phone screen by swiping up and down. The animation changes from the sun (the day is bright) to the moon (the night is dark), a very beautiful screen brightness animation!\n\n## Design sketch\n![2020-05-03 01_00_28.gif](https://github.com/zhangchaojiong/VideoProgressView/blob/master/image/2788235-f057d49c96baa63d.gif)          ![2020-05-05 18_09_07.gif](https://github.com/zhangchaojiong/VideoProgressView/blob/master/image/2788235-cd0a98eda6c1c711.gif)\n\n\n## Usage：\n* Setting up the dependency by mavenCentral()\n\n\n~~implementation 'com.cj.videoprogressview:progressview:1.0.0'~~\n\n```\nimplementation 'io.github.zhangchaojiong:videoprogressview:1.1.1'\n```\n\n\n* Simple use cases will look something like this:\n\n```\n\u003ccom.cj.videoprogressview.LightProgressView\n        android:id=\"@+id/lpv\"\n        android:padding=\"10dp\"\n        android:background=\"@drawable/bg_center_window\"\n        android:layout_width=\"88dp\"\n        android:layout_height=\"88dp\"\n        app:lpv_halo_color=\"@android:color/white\"\n        app:lpv_moon_color=\"@android:color/white\"\n        app:lpv_halo_height=\"7dp\"\n        app:lpv_halo_width=\"2dp\"/\u003e\n```\n\n```\n\u003ccom.cj.videoprogressview.VolumeProgressView\n        android:id=\"@+id/vpv\"\n        android:layout_marginLeft=\"3dp\"\n        android:padding=\"10dp\"\n        android:background=\"@drawable/bg_center_window\"\n        android:layout_width=\"88dp\"\n        android:layout_height=\"88dp\"\n        app:vpv_halo_color=\"@android:color/white\"\n        app:vpv_halo_height=\"7dp\"\n        app:vpv_halo_width=\"2dp\"\n        /\u003e\n```\n```\n//Set progress to control animation\n(LightProgressView)findViewById(R.id.lpv).setProgress(0.5f);\n(VolumeProgressView)findViewById(R.id.vpv).setProgress(0.6f);\n```\n\n## Styleable \n\n```\n   \u003cdeclare-styleable name=\"LightProgressView\"\u003e\n        //Halo length\n        \u003cattr format=\"dimension\" name=\"lpv_halo_height\"/\u003e \n        //Halo thickness\n        \u003cattr format=\"dimension\" name=\"lpv_halo_width\"/\u003e\n        //Number of halos\n        \u003cattr format=\"integer\" name=\"lpv_num_of_halo\"/\u003e\n        //The curvature of the moon, the default value is 0.43f\n        \u003cattr format=\"float\" name=\"lpv_magicnum\"/\u003e\n        //The color of the moon\n        \u003cattr format=\"color\" name=\"lpv_moon_color\"/\u003e\n        //The color of the halo\n        \u003cattr format=\"color\" name=\"lpv_halo_color\"/\u003e\n    \u003c/declare-styleable\u003e\n```\n\n```\n    \u003cdeclare-styleable name=\"VolumeProgressView\"\u003e\n    //Halo length\n        \u003cattr format=\"dimension\" name=\"vpv_halo_height\"/\u003e\n        //Halo thickness\n        \u003cattr format=\"dimension\" name=\"vpv_halo_width\"/\u003e\n        //Number of halos\n        \u003cattr format=\"integer\" name=\"vpv_num_of_halo\"/\u003e\n        //Customize pictures with low volume\n        \u003cattr format=\"integer\" name=\"vpv_volume_low\"/\u003e\n        //Customize pictures with medium volume\n        \u003cattr format=\"integer\" name=\"vpv_volume_medium\"/\u003e\n        //Customize pictures with high volume\n        \u003cattr format=\"integer\" name=\"vpv_volume_high\"/\u003e\n        //The color of the halo\n        \u003cattr format=\"color\" name=\"vpv_halo_color\"/\u003e\n    \u003c/declare-styleable\u003e\n```\n\n\n## Deductive Reasoning\n* [wiki](https://github.com/zhangchaojiong/VideoProgressView/wiki) \n* [blog](https://www.jianshu.com/p/55e7de12451d) \n\n## License\n\n```\nCopyright (C) 2020 chaojiong.zhang\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrycatchx%2Fvideoprogressview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrycatchx%2Fvideoprogressview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrycatchx%2Fvideoprogressview/lists"}