# AnimatedCircleLoadingView
**Repository Path**: HarmonyOS-tpc/AnimatedCircleLoadingView
## Basic Information
- **Project Name**: AnimatedCircleLoadingView
- **Description**: A determiante/indetermiante loading view animation.
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 3
- **Forks**: 1
- **Created**: 2021-04-15
- **Last Updated**: 2023-04-17
## Categories & Tags
**Categories**: harmonyos-loading
**Tags**: None
## README
# Animated Circle Loading View
A determiante/indetermiante loading view animation.
## Gradle
```
allprojects{
repositories{
mavenCentral()
}
}
implementation 'io.openharmony.tpc.thirdlib:AnimatedCircleLoadingView:1.0.2'
```
## Usage
----
Add AnimatedCircleLoadingView to your layout and define mainColor and secondaryColor as custom attributes:
```java
```
## Determinate
Start determinate:
```java
animatedCircleLoadingView.startAnimated();
```
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();
```
License
----
```
Copyright 2015 José Luis Martín
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.
```