Skip to content

Repository files navigation

ProgressIndicator

This is a customizable circular progress bar. You can achieve the arc progress effect with text in the center using only XML.

Contents

Add Dependency in Gradle

dependencies {
implementation("com.github.ghxstbyte:progress-indicator:#version-tag")
}

CircularProgressIndicator

CircularProgressIndicator

<com.arr.arcprogressbar.CircularProgressIndicator
android:id="@+id/progress_circular"android:layout_width="140dp"android:layout_height="140dp" />

ArcProgressIndicator

ArcProgressIndicator

<com.arr.arcprogressbar.ArcProgressIndicator
android:id="@+id/progress_arc"android:layout_width="140dp"android:layout_height="140dp" />

Common attributes

The following attributes are shared between arc progress and circular progress indicators:

ElementAttributeRelated method(s)Default value
Indicator colorapp:colorProgresssetProgressColorColor.BLUE
Track colorapp:colorTracksetTrackColorColor.GRAY
Animationapp:arcAnimationN/Afalse
Stroke widthapp:strokeWidthsetStrokeWidth10dp
Stroke colorapp:colorStrokesetStrokeColorColor.WHITE
Text labelapp:centerTextsetCenterTextnull
Text colorapp:centerTextColorsetTextColorColor.BLACK
Text sizeapp:textSizesetTextSize12dp

License

Apache License
Copyright [2024][Alessandro Rodríguez]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
 http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages