Skip to content

bitvale/ValueProgress

Repository files navigation

ValueProgress

sample

License Platform API

Android value progress library.

USAGE

Just add ValueProgress view in your layout XML and ValueProgress library in your project via Gradle:

dependencies {
  implementation 'com.bitvale:valueprogress:1.0.1'
}

XML

<com.bitvale.valueprogress.ValueProgress
    android:id="@+id/pac_button"
    android:layout_width="@dimen/progress_size"
    android:layout_height="@dimen/progress_size"
    app:progress_width="@dimen/progress_width"
    app:progress_text_color="@color/text_color"
    app:progress_color="@color/progress_color"
    app:progress_max_value="@integer/max_value"
    app:progress_value_symbol="%" />

You must use the following properties in your XML to change your ValueProgress.

Properties:
  • app:progress_color (drawable) -> default #52D99F
  • app:progress_width (drawable) -> default none
  • app:progress_text_size (dimension) -> default none
  • app:progress_text_color (color) -> default #535353
  • app:progress_disabled_color (color) -> default #EDEDED
  • app:progress_shadow_color (color) -> default #CCCAC8C8
  • app:progress_background_color (color) -> default #FFFFFF
  • app:progress_max_value (float) -> default 100
  • app:progress_value_symbol (string) -> default %

Kotlin

The Progress will be animated after you set a percent value.

value_progress.progressMaxValue = 100
value_progress.percent = 25 // animation starts

LICENCE

ValueProgress by Alexander Kolpakov is licensed under an Apache License 2.0.

About

Android value progress library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages