AVLoadingIndicatorView
来源:互联网 发布:淘宝一千零一夜 编辑:程序博客网 时间:2024/05/20 02:24
AVLoadingIndicatorView是一个实现了各种各样加载效果的库,每一种效果都很精美。
运行效果:
github地址:https://github.com/81813780/AVLoadingIndicatorView
Usage
Step 1
Add dependencies in build.gradle.
dependencies { compile 'com.wang.avi:library:2.1.3' }
Step 2
Add the AVLoadingIndicatorView to your layout:
Simple
<com.wang.avi.AVLoadingIndicatorView android:layout_width="wrap_content" android:layout_height="wrap_content" app:indicatorName="BallPulseIndicator" />
Advance
<com.wang.avi.AVLoadingIndicatorView android:id="@+id/avi" android:layout_width="wrap_content" //or your custom size android:layout_height="wrap_content" //or your custom size style="@style/AVLoadingIndicatorView"// or AVLoadingIndicatorView.Large or AVLoadingIndicatorView.Small android:visibility="visible" //visible or gone app:indicatorName="BallPulseIndicator"//Indicator Name app:indicatorColor="your color" />
Step 3
It's very simple use just like .
void startAnim(){ avi.show(); // or avi.smoothToShow(); } void stopAnim(){ avi.hide(); // or avi.smoothToHide(); }
Proguard
When using proguard need add rules:
-keep class com.wang.avi.** { *; }-keep class com.wang.avi.indicators.** { *; }
Indicators is load from class names, proguard may change it (rename).
Indicators
the indicators are as follows:
Row 1
BallPulseIndicator
BallGridPulseIndicator
BallClipRotateIndicator
BallClipRotatePulseIndicator
Row 2
SquareSpinIndicator
BallClipRotateMultipleIndicator
BallPulseRiseIndicator
BallRotateIndicator
Row 3
CubeTransitionIndicator
BallZigZagIndicator
BallZigZagDeflectIndicator
BallTrianglePathIndicator
Row 4
BallScaleIndicator
LineScaleIndicator
LineScalePartyIndicator
BallScaleMultipleIndicator
Row 5
BallPulseSyncIndicator
BallBeatIndicator
LineScalePulseOutIndicator
LineScalePulseOutRapidIndicator
Row 6
BallScaleRippleIndicator
BallScaleRippleMultipleIndicator
BallSpinFadeLoaderIndicator
LineSpinFadeLoaderIndicator
Row 7
TriangleSkewSpinIndicator
PacmanIndicator
BallGridBeatIndicator
SemiCircleSpinIndicator
Row 8
com.wang.avi.sample.MyCustomIndicator
0 0
- AVLoadingIndicatorView
- AVLoadingIndicatorView---加载动画
- AVLoadingIndicatorView加载效果动画
- android AVLoadingIndicatorView笔记
- 开源代码AVLoadingIndicatorView、AndroidProcesses、mp4parser
- Android的加载动画AVLoadingIndicatorView
- 非常漂亮的进度指示器AVLoadingIndicatorView
- 漂亮的Android加载中动画:AVLoadingIndicatorView
- Androi_SwipeRefreshLayout上拉刷新、AVLoadingIndicatorView加载动画
- Androi_SwipeRefreshLayout上拉刷新、AVLoadingIndicatorView加载动画
- 翻翻git之---溜的飞起的加载效果AVLoadingIndicatorView
- AVLoadingIndicatorView整合了一些漂亮的 Android 动画加载效果
- 收藏一个 漂亮的 Android加载中动画AVLoadingIndicatorView
- Android加载中动画AVLoadingIndicatorView的使用封装
- 【FastDev4Android框架开发】非常漂亮的进度指示器AVLoadingIndicatorView的使用讲解(十八)
- 1004. 成绩排名 (20)
- 数字三角形&&添加回文串&&最短排序&&字符串通配
- iOS简单实用的AES加密(亲测,能用)
- SonarQube与Eclipse配合
- MongoDB——理论基础
- AVLoadingIndicatorView
- UIViewController中addChildViewController的坑:viewWillAppear不调用
- 自定js方法增加回调函数
- android中webservice请求的异步回调封装(一)
- bash shell 登陆时的执行的用户脚本
- 06.ThreeJs开发指南-第六章-高级几何体
- rplidar使用hector_slam的hector_mapping geotiff创建地图方法(2)
- 如何将SQLite数据库(dictionary.db文件)与apk文件一起发布
- jquery 根据值设置radio选中