Skip to content

ProgressCircula is a lightweight customisable circular ProgressBar view for Android.

Notifications You must be signed in to change notification settings

2hamed/ProgressCircula

Repository files navigation

ProgressCircula

Download Android Arsenal

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.

Showcase

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" />