ProgressCircula

Additional

Language
Kotlin
Version
v0.2.1 (Apr 16, 2019)
Created
Jun 25, 2018
Updated
Oct 9, 2019
Owner
Hamed Momeni (2hamed)
Contributor
Hamed Momeni (2hamed)
1
Activity
Badge
Generate
Download
Source code
APK file

Blurb

ProgressCircula

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.

Usage

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 ring
  • pgc_rimWidth: The width of the progress ring in pixels
  • pgc_textColor: Color of the progress text
  • pgc_showProgress: Whether to show the progress text or not
  • pgc_indeterminate: This makes the progress bar indeterminate
  • pgc_progress: With this you can update the progress of the progress bar, should be >=0 and <= 100
  • pgc_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" />