# AdhesiveLoadingView
**Repository Path**: baijuncheng-open-source/adhesive-loading-view
## Basic Information
- **Project Name**: AdhesiveLoadingView
- **Description**: 具有粘性的滑动小球,跌落反弹形成loading的效果
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-06-16
- **Last Updated**: 2021-07-06
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# AdhesiveLoadingView
一个具有粘性的滑动小球,具有跌落反弹形成文字的效果,形成loading字样
# 效果

# 项目结构
这个动画包括了三个过程:
1.小球旋转放大,其中还有震动效果
2.小球缩小衍生水滴,迅速跌落
3.文字弹出展现
在结构上是主要是通过controller对三个animator进行一个控制,并作为其中的信息传递媒介链接各个animator,将canvas分发给animator进行绘制。而view通过controller的初始化来达到展示动画的效果。其中,动画的效果是由AnimationSet进行顺序的控制。
##### 将 LoadingView 添加到您的项目中
1.将AdhesiveLoadingView/lib文件夹复制到工程目录下
2.修改项目下的settings.gradle,添加对这个模块的依赖如下:
include ':lib', ':sample'
3、介绍项目下模块的依赖。 以入口模块为例,需要修改入口模块下的build.gradle文件,添加依赖:
compile project(path: ':lib') or implementation project(':lib')
方案二:本地使用har包集成
1、编译本工程,将AdhesiveLoadingView/library文件夹的build目录下生成的har包复制到工程lib文件夹中:
目录:\AdhesiveLoadingView\lib\build\outputs\har\debug\library-debug.har
2.在入口的gradle中添加以下代码
实现文件树(目录:'libs',包括:['*.jar','*.har'])
方案三:引用maven仓库
1. 添加maven依赖在你的项目根目录xml中 `build.gradle` file (**not** your module `build.gradle` file):
```xml
allprojects {
repositories {
...
mavenCentral()
}
}
```
2. 这个依赖包在maven中心仓库, 你可以引用它 [Gradle, please]
```xml
dependencies {
implementation ‘com.gitee.baijuncheng-open-source:adhesive-loading-view:1.0.0'
}
```
# 用法
1.通过xml引入
``` xml
```
2.通过java引入
License
-------
The MIT License (MIT)
Copyright (c) 2014 yxping
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.