Skip to content

ArcProgressbar project let create Arc progressbar in android in simplest way.

License

Notifications You must be signed in to change notification settings

Marvel999/Arc-Progressbar-lib

Repository files navigation

Arc Progressbar In Android

ArcProgressbar project let create Arc progressbar in android in simplest way.


Build Status Medium License License License AndroidWeekly


Arcprogressbar

USAGE

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:

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'
}

XML

<!-- <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 */

  • app:ap_background_progressbar_width (Integer) -> default 5
  • app:ap_foreground_progressbar_width (Integer) -> default 40
  • app:ap_progress (Integer) -> default 0
  • app:ap_progress_background_color (Color) -> default Color #F9F9FA
  • app:ap_progress_color (Color) -> default Color #71CC75
  • app:ap_progress_roundedCorner (Boolean) -> default flase
  • app:ap_progress_isClockwise (Boolean) -> default true
  • app:ap_progress_maxscale (Integer) -> default 100

Kotlin

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)

How to contribute?

  1. Fork the repository
  2. Do the desired changes (add/delete/modify)
  3. Make a pull request

When to contribute?

  1. Fix open bugs.
  2. Add new issue.

LICENCE

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