The "Progress View" library is a custom Android component that enables you to create progress bars with a distinct design. It features a circular progress bar with a ball that represents the current progress and another ball to signify the complete progress. Additionally, you can customize the appearance of the progress view when it's both full and empty.
// Register JitPack Repository inside the root build.gradle file
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { setUrl("https://jitpack.io") }
}
}
// Add ProgressView dependency inside the app's build.gradle file
dependencies {
implementation("com.github.aleixo-dev:progressview:z.y.z")
}
Note: replace x.y.z with one from Release (e.g. 1.0.0).
<br.com.nicolas.progress_view.ProgressView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:initialProgress="0"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:maxProgress="10" />
![invisible hcaptcha example](https://private-user-images.githubusercontent.com/75820713/275367539-6fc4a5fd-40bc-4517-8e46-8da3cf41820c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjU4MTksIm5iZiI6MTczOTQ2NTUxOSwicGF0aCI6Ii83NTgyMDcxMy8yNzUzNjc1MzktNmZjNGE1ZmQtNDBiYy00NTE3LThlNDYtOGRhM2NmNDE4MjBjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE2NTE1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzM2FlZTE5MWFlMzMwZTUxMTc0NDZkZWZlOGEzNTNlOTVhMjI3MjA2MTcxM2Q5ZTQwNTczNGE1OTQ5YWFmOTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OkRXE8cHeTUBX2Z9VRF0KR7LROQ16AlGt7TCWryBLtQ)
The following list contains configuration properties to allows customization.
Name | Values/Type | Required | Default | Description |
---|---|---|---|---|
maxProgress |
Int | Yes | - | This is your max progress view |
initialProgress |
Int | Yes | - | This specifies the "current progress" of the component. |
backgroundProgressView |
Drawable | no | True | This property defines the background of the progress view when it is being filled. |
backgroundProgressViewEmpty |
Drawable | no | True | This property sets the background of the progress view when it is empty or has yet to be filled. |
backgroundContainerNumberView |
Drawable | no | True | This property sets the background of the ball of the current progress view number. |
backgroundContainerFinalView |
Drawable | no | True | This property sets the bottom of the ball at the end of the progress view. |