All Projects → trycatchx → VideoProgressView

trycatchx / VideoProgressView

Licence: other
Moon brightness animation + volume animation. Suitable for playing video to adjust volume and brightness

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to VideoProgressView

GradientProgressView
一个简单的进度条控件
Stars: ✭ 15 (-74.14%)
Mutual labels:  progress-view
N-SidedProgressBar
Progress Bar in the shape of regular polygon.
Stars: ✭ 69 (+18.97%)
Mutual labels:  progress-view
ALProgressView
Animated and fully customizable progress view with 2 styles: ring and bar.
Stars: ✭ 72 (+24.14%)
Mutual labels:  progress-view
FillProgressLayout
A simple and flexible Fillable Progress Layout written in Kotlin
Stars: ✭ 77 (+32.76%)
Mutual labels:  progress-view
LinearProgressView
A simple linear progress view for iOS
Stars: ✭ 103 (+77.59%)
Mutual labels:  progress-view
IJProgressView
A simple progress view written in Swift.
Stars: ✭ 70 (+20.69%)
Mutual labels:  progress-view
CustomProgress
一款常见的进度条加载框架
Stars: ✭ 32 (-44.83%)
Mutual labels:  progress-view
Circular-Progress-View
A customisable circular progress view for android.
Stars: ✭ 39 (-32.76%)
Mutual labels:  progress-view
XCArcProgressView
Android开口圆环比例进度View(高仿猎豹清理大师内存占用比例View)
Stars: ✭ 28 (-51.72%)
Mutual labels:  progress-view
progressViews
some beautiful views with progress status.
Stars: ✭ 17 (-70.69%)
Mutual labels:  progress-view
CoolProgressViews
Android library with collection of cool progress views.
Stars: ✭ 83 (+43.1%)
Mutual labels:  progress-view
RoundCornerProgress
No description or website provided.
Stars: ✭ 14 (-75.86%)
Mutual labels:  progress-view

LightProgressView + VolumeProgressView

Build Status java java

Englist | 中文版本

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 2020-05-05 18_09_07.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:
<com.cj.videoprogressview.LightProgressView
        android:id="@+id/lpv"
        android:padding="10dp"
        android:background="@drawable/bg_center_window"
        android:layout_width="88dp"
        android:layout_height="88dp"
        app:lpv_halo_color="@android:color/white"
        app:lpv_moon_color="@android:color/white"
        app:lpv_halo_height="7dp"
        app:lpv_halo_width="2dp"/>
<com.cj.videoprogressview.VolumeProgressView
        android:id="@+id/vpv"
        android:layout_marginLeft="3dp"
        android:padding="10dp"
        android:background="@drawable/bg_center_window"
        android:layout_width="88dp"
        android:layout_height="88dp"
        app:vpv_halo_color="@android:color/white"
        app:vpv_halo_height="7dp"
        app:vpv_halo_width="2dp"
        />
//Set progress to control animation
(LightProgressView)findViewById(R.id.lpv).setProgress(0.5f);
(VolumeProgressView)findViewById(R.id.vpv).setProgress(0.6f);

Styleable

   <declare-styleable name="LightProgressView">
        //Halo length
        <attr format="dimension" name="lpv_halo_height"/> 
        //Halo thickness
        <attr format="dimension" name="lpv_halo_width"/>
        //Number of halos
        <attr format="integer" name="lpv_num_of_halo"/>
        //The curvature of the moon, the default value is 0.43f
        <attr format="float" name="lpv_magicnum"/>
        //The color of the moon
        <attr format="color" name="lpv_moon_color"/>
        //The color of the halo
        <attr format="color" name="lpv_halo_color"/>
    </declare-styleable>
    <declare-styleable name="VolumeProgressView">
    //Halo length
        <attr format="dimension" name="vpv_halo_height"/>
        //Halo thickness
        <attr format="dimension" name="vpv_halo_width"/>
        //Number of halos
        <attr format="integer" name="vpv_num_of_halo"/>
        //Customize pictures with low volume
        <attr format="integer" name="vpv_volume_low"/>
        //Customize pictures with medium volume
        <attr format="integer" name="vpv_volume_medium"/>
        //Customize pictures with high volume
        <attr format="integer" name="vpv_volume_high"/>
        //The color of the halo
        <attr format="color" name="vpv_halo_color"/>
    </declare-styleable>

Deductive Reasoning

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].