Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jlmd/AnimatedCircleLoadingView
An animated circle loading view
https://github.com/jlmd/AnimatedCircleLoadingView
Last synced: 11 days ago
JSON representation
An animated circle loading view
- Host: GitHub
- URL: https://github.com/jlmd/AnimatedCircleLoadingView
- Owner: jlmd
- License: apache-2.0
- Created: 2015-07-08T20:13:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-14T04:14:37.000Z (about 4 years ago)
- Last Synced: 2024-07-31T18:17:05.018Z (3 months ago)
- Language: Java
- Size: 747 KB
- Stars: 1,169
- Watchers: 39
- Forks: 210
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- -awesome-android-ui - Animated Circle Loading View - 2.0) | <img src="/art/AnimatedCircleLoadingView.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - Animated Circle Loading View - 2.0) | <img src="/art/AnimatedCircleLoadingView.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-Loaders - Animated Circle Loading View - 2.0) | <img src="https://github.com/jlmd/AnimatedCircleLoadingView/blob/master/art/indeterminate_ok.gif" width="49%"> (Index)
- awesome-github-android-ui - AnimatedCircleLoadingView - 加载视图动画 (进度条)
- awesome-loading-indicators - Animated Circle Loading View - An animated circle loading view. (Java)
- awesome-android-ui - Animated Circle Loading View - 2.0) | <img src="/art/AnimatedCircleLoadingView.gif" width="49%"> (Index)
README
Animated Circle Loading View
=========
[![Download](https://api.bintray.com/packages/jlmd/maven/AnimatedCircleLoadingView/images/download.svg) ](https://bintray.com/jlmd/maven/AnimatedCircleLoadingView/_latestVersion)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-AnimatedCircleLoadingView-green.svg?style=flat)](https://android-arsenal.com/details/1/2112)A determiante/indetermiante loading view animation.
Based on [android-watch-loading-animation](http://www.materialup.com/posts/android-watch-loading-animation) by [Nils Banner](http://www.materialup.com/NilsMedia).How it looks
----
![gif](./art/indeterminate_ok.gif "animation_ok")![gif](./art/indeterminate_failure.gif "animation_failure")
Usage
----
Add AnimatedCircleLoadingView to your layout and define mainColor and secondaryColor as custom attributes:```java
```
##### Determinate
Start determinate:```java
animatedCircleLoadingView.startDeterminate();
```Modify percent:
```java
animatedCircleLoadingView.setPercent(10);
```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:```java
animatedCircleLoadingView.startIndeterminate();
```Stop with success:
```java
animatedCircleLoadingView.stopOk();
```Stop with failure:
```java
animatedCircleLoadingView.stopFailure();
```Reset loading:
```java
animatedCircleLoadingView.resetLoading();
```Gradle dependency
----
Add repository to your build.gradle```groovy
repositories {
maven {
url "http://dl.bintray.com/jlmd/maven"
}
}
```
Add dependency to your build.gradle
```groovy
compile 'com.github.jlmd:AnimatedCircleLoadingView:1.1.5@aar'
```Developed by
---
José Luis Martín -* [LinkedIn](https://www.linkedin.com/in/jlmartind)
* [Twitter](https://twitter.com/jlmartind)License
----
```
Copyright 2015 José Luis MartínLicensed 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 athttp://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.
```