ArcProgressbar project let create Arc progressbar in android in simplest way.
FreeArcProgressbar project let create Arc progressbar in android in simplest way.
To make a Arc Progressbar add ArcProgressbar in your layout XML and add ArcProgressbar library in your project or you can also grab it through Gradle:
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
...
implementation 'com.github.Marvel999:Arc-Progressbar-lib:1.0.0'
}
<!-- <a> Arc progressbar xml</a> -->
<com.marvel999.acr.ArcProgress
android:id="@+id/arc_img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:ap_background_progressbar_width="20"
app:ap_foreground_progressbar_width="20"
app:ap_progress="50"
app:ap_progress_background_color="#EDEDED"
app:ap_progress_color="#71CC75"
/>
You may use the following properties in your XML to change your ArcProgressbar.
#####Properties:
/* Arc progressbar xml */
val arc_img:ArcProgress=findViewById(R.id.arc_img)
arc_img.setColor(R.color.white)
arc_img.setProgressThickness(50f)
arc_img.setProgressBackgroundColor(Color.CYAN)
arc_img.setProgressColor(Color.YELLOW)
arc_img.setProgress(130f)
arc_img.setProgress(progress)
arc_img.setProgressWithAnimation(progress)
Copyright 2021 Manish
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.
Thanks to Ankit