# LightProgressView + VolumeProgressView ![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) [Englist](https://github.com/zhangchaojiong/VideoProgressView/blob/master/README.md) | [中文版本](https://github.com/zhangchaojiong/VideoProgressView/blob/master/README_zh.md) >A 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! ## Design sketch ![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) ## Usage: * Setting up the dependency by mavenCentral() ~~implementation 'com.cj.videoprogressview:progressview:1.0.0'~~ ``` implementation 'io.github.zhangchaojiong:videoprogressview:1.1.1' ``` * Simple use cases will look something like this: ``` ``` ``` ``` ``` //Set progress to control animation (LightProgressView)findViewById(R.id.lpv).setProgress(0.5f); (VolumeProgressView)findViewById(R.id.vpv).setProgress(0.6f); ``` ## Styleable ``` //Halo length //Halo thickness //Number of halos //The curvature of the moon, the default value is 0.43f //The color of the moon //The color of the halo ``` ``` //Halo length //Halo thickness //Number of halos //Customize pictures with low volume //Customize pictures with medium volume //Customize pictures with high volume //The color of the halo ``` ## Deductive Reasoning * [wiki](https://github.com/zhangchaojiong/VideoProgressView/wiki) * [blog](https://www.jianshu.com/p/55e7de12451d) ## License ``` Copyright (C) 2020 chaojiong.zhang Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```