# LoadingView
**Repository Path**: hihopeorg/LoadingView
## Basic Information
- **Project Name**: LoadingView
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-03-10
- **Last Updated**: 2025-03-04
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# LoadingView
**本项目是基于开源项目 LoadingView 进行ohos化的移植和开发的,可以通过项目标签以及github地址(https://github.com/ldoublem/LoadingView )追踪到原项目版本**
#### 项目介绍
- 项目名称:LoadingView
- 所属系列:ohos的第三方组件适配移植
- 功能:提供22种样式加载动画
- 项目作者和维护人:hihope
- 联系方式:hihope@hoperun.com
- 调用差异:无
- 原项目Doc地址:https://github.com/ldoublem/LoadingView
- 编程语言:Java
#### 安装教程
方法1.
1. 将本三方库的har下载。
2. 启动 DevEco Studio,将下载的har包,导入工程目录“entry->libs”下。
3. 在entry级别下的build.gradle文件中添加依赖,在dependences标签中增加对libs目录下har包的引用。
```
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
……
}
```
方法2.
1. 在工程的build.gradle的allprojects中,添加HAR所在的Maven仓地址
```
repositories {
maven {
url 'http://106.15.92.248:8081/repository/Releases/'
}
}
```
2. 在应用模块的build.gradle的dependencies闭包中,添加如下代码:
```
dependencies {
implementation 'com.ldoublem.loadingview.ohos:loadingviewlib:1.0.1'
}
```
#### 效果演示
#### 使用说明
1.在布局xml中导入自定义动画控件,设置相应宽高属性
```
```
2.在代码中设置startAnim()方法启动动画
```
mLVGhost.setClickedListener(component -> mLVGhost.startAnim());
```
各个动画接口调用方法表:
|Id | Name | Method |
|:-:|:-:|:--|
|1| LVCircularCD | setViewColor(int color)
startAnim(int time)
stopAnim()|
|2| LVCircularRing | setViewColor(int color)
setBarColor(int color)
startAnim(int time)
stopAnim()|
|3| LVCircular | setViewColor(int color)
setRoundColor(int color)
startAnim(int time)
stopAnim()|
|4| LVFinePoiStar | setViewColor(int color)
setCircleColor(int color)
startAnim(int time)
stopAnim()
setDrawPath(boolean isDrawPath)|
|5| LVCircularSmile | setViewColor(int color)
startAnim(int time)
stopAnim()|
|6| LVGears | setViewColor(int color)
startAnim(int time)
stopAnim()|
|7| LVGearsTwo | setViewColor(int color)
startAnim(int time)
stopAnim()|
|8| LVWifi | setViewColor(int color)
startAnim(int time)
stopAnim()|
|9| LVCircularJump | setViewColor(int color)
startAnim(int time)
stopAnim()|
|10| LVCircularZoom | setViewColor(int color)
startAnim(int time)
stopAnim()|
|11| LVPlayBall | setViewColor(int color)
setBallColor(int color)
startAnim(int time)
stopAnim()|
|12| LVNews | setViewColor(int color)
startAnim(int time)
stopAnim()|
|13| LVLineWithText | setViewColor(int color)
setTextColor(int color)
setValue(int value)//0-100|
|14| LVEatBeans | setViewColor(int color)
setEyeColor(int color)
startAnim(int time)
stopAnim()|
|15| LVChromeLogo | startAnim(int time)
stopAnim()|
|16| LVRingProgress | setViewColor(int color)
setTextColor(int color)
setPorBarStartColor(int color)
setPorBarEndColor(int color)
startAnim(int time)
stopAnim()|
|17| LVBlock | setViewColor(int color)
isShadow(boolean show)
setShadowColor(int color)
startAnim(int time)
stopAnim() |
|18| LVFunnyBar | setViewColor(int color)
startAnim(int time)
stopAnim()|
|19| LVGhost | setViewColor(int color)
setHandColor(int color)
startAnim(int time)
stopAnim()|
|20| LVBlazeWood | startAnim(int time)
stopAnim()|
|21| LVBattery | setViewColor(int color)
setCellColor(int color)
setShowNum(boolean show)
setValue(int value)//0-100
startAnim(int time)
stopAnim()|
|22| LVSunSetView | setSunendTime(String endtime)
setSunstartTime(String starttime)
startSunset()|
#### 版本迭代
- v1.0.1
#### 版权和许可信息
The MIT License (MIT)
Copyright (c) 2016 ldoublem
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.