Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.78 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.78 KB

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