ValueProgress
ValueProgress copied to clipboard
Android value progress library
ValueProgress
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 #52D99Fapp:progress_width(drawable) -> default noneapp:progress_text_size(dimension) -> default noneapp:progress_text_color(color) -> default #535353app:progress_disabled_color(color) -> default #EDEDEDapp:progress_shadow_color(color) -> default #CCCAC8C8app:progress_background_color(color) -> default #FFFFFFapp:progress_max_value(float) -> default 100app: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.