# dashed-circular-progress
**Repository Path**: mirrors_glomadrian/dashed-circular-progress
## Basic Information
- **Project Name**: dashed-circular-progress
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-01-11
- **Last Updated**: 2025-03-23
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Dashed Circular Progress
==
[](https://travis-ci.org/glomadrian/dashed-circular-progress)
[](https://android-arsenal.com/details/1/1513)
[  ](https://bintray.com/glomadrian/maven/DashedCircularProgress/_latestVersion)
A Circular progress animated where you can put any view inside
## Minimal SDK Version
The minimal sdk supported version is 11
Example
------------

Usage
------------
``` xml
//Put here any view you like to be inside progress bar
```
Remember
------------
Remember put this for custom attribute usage
``` java
xmlns:custom="http://schemas.android.com/apk/res-auto"
```
Custom attributes
------------
* External color: The color of the outside line
``` java
custom:external_color="#1affffff"
```
* Base color: The color base of the progress bar
``` java
custom:base_color="#6effffff"
```
* Progress color: The color of the progress line
``` java
custom:progress_color="#000000"
```
* Progress icon: The icon that appears on top
``` java
custom:progress_icon="@drawable/my_awesome_icon"
```
* Min: Minimum value for progress
``` java
custom:min="0"
```
* Max: Maximun value for progress
``` java
custom:max="999"
```
* Duration: Animation duration time in milliseconds
``` java
custom:duration="1000"
```
``` java
custom:progress_stroke_width="48" // see the simple.xml example for setting the width thicker
```
More xml examples
------------
* [With View pager](https://github.com/glomadrian/dashed-circular-progress/blob/master/app%2Fsrc%2Fmain%2Fres%2Flayout%2Fdragon_ball.xml)
* [With Textview](https://github.com/glomadrian/dashed-circular-progress/blob/master/app%2Fsrc%2Fmain%2Fres%2Flayout%2Fsimple.xml)
* [With image](https://github.com/glomadrian/dashed-circular-progress/blob/master/app%2Fsrc%2Fmain%2Fres%2Flayout%2Fsize.xml)
## Code Usage
Attributes
------------
```java
dashedCircularProgress.setExternalColor(awesomeColor);
dashedCircularProgress.setProgressColor(awesomeColor2);
dashedCircularProgress.setInternalBaseColor(awesomeColor3);
dashedCircularProgress.setDuration(2000);
dashedCircularProgress.setIcon(awesomeIcon);
dashedCircularProgress.setMin(min);
dashedCircularProgress.setMax(max);
```
Animation
------------
```java
dashedCircularProgress.setInterpolator(interpolator);
```
Update Listener
------------
```java
dashedCircularProgress.setOnValueChangeListener(new DashedCircularProgress.OnValueChangeListener() {
@Override
public void onValueChange(float value) {
//Your code here
}
});
```
Reset, set the value to 0 without animation
------------
```java
dashedCircularProgress.reset();
```
Transformer
------------
If you put a viewpager inside the Dashed Circular Progress maybe want to use a fade in / out on page change for a more comfortable user experience, use this transformer in your adapter (included in the library)
```java
com.github.glomadrian.dashedcircularprogress.utils.ViewPagerTransformer
viewPager.setPageTransformer(true, new ViewPagerTransformer());
```
Gradle
------------
Repository
```java
repositories {
maven {
url "http://dl.bintray.com/glomadrian/maven"
}
}
```
Dependency
```java
compile 'com.github.glomadrian:DashedCircularProgress:1.0@aar'
```
Developer By
------------
Adrián García Lomas
* [Twitter](https://twitter.com/glomadrian)
* [LinkedIn](https://es.linkedin.com/in/glomadrian )
License
-------
Copyright 2015 Adrián García Lomas
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.