Animated Circle Loading View
A determiante/indetermiante loading view animation. Based on android-watch-loading-animation by Nils Banner.
Usage
Add AnimatedCircleLoadingView to your layout and define mainColor and secondaryColor as custom attributes:
Determinate
Start determinate:
Modify percent:
If percent is 100, the animation ends with success animation.
On error you must call stopFailure() method, then the application ends with failure animation.
Indeterminate
Start indeterminate:
Stop with success:
Stop with failure:
Reset loading:
Gradle dependency
Add repository to your build.gradle
Add dependency to your build.gradle