ProgressCircula is a lightweight customisable circular ProgressBar view for Android. It has been written entirely in Kotlin and it includes only one file. The purpose was to mimic the behavior of Telegram ProgressBar for messages.
ProgressCircula is available through jCenter and you can easily include it in your build.gradle
file.
implementation 'com.hmomeni.progresscircula:progresscircula:0.2.1'
There are a number of customisation parameters which can be used either in xml or programmatically:
pgc_rimColor
: This specifies the color of ProgressBar ringpgc_rimWidth
: The width of the progress ring in pixelspgc_textColor
: Color of the progress textpgc_showProgress
: Whether to show the progress text or notpgc_indeterminate
: This makes the progress bar indeterminatepgc_progress
: With this you can update the progress of the progress bar, should be >=0 and <= 100pgc_speed
: this is the speed factor. The default is set to 4, the more the faster
<com.hmomeni.progresscircula.ProgressCircula
android:id="@+id/progressBar"
android:layout_width="90dp"
android:layout_height="90dp"
app:pgc_indeterminate="true"
app:pgc_progress="40"
app:pgc_rimColor="@color/colorAccent"
app:pgc_rimWidth="3dp"
app:pgc_showProgress="true"
app:pgc_speed="4"
app:pgc_textColor="#00FF00" />