android 加载动画下载,AVLoadingIndicatorView

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f416e64726f6964253230417273656e616c2d41564c6f6164696e67496e64696361746f72566965772d677265656e2e7376673f7374796c653d666c6174 AVLoadingIndicatorView

如果你对这个库有任何疑问或者建议,请向我的AVLoadingIndicatorView更新版本1,欢迎告诉我。

简介

AVLoadingIndicatorView是用于Android的漂亮加载动画的集合。

你还可以在这里找到这里的iOS版本。

演示

avi.gif

用法

步骤 1

在 build.gradle 中添加依赖项。dependencies {

compile 'com.wang.avi:library:2.1.3' }

步骤 2

将AVLoadingIndicatorView添加到布局中:

简单

android:layout_height="wrap_content" app:indicatorName="BallPulseIndicator"/>

提前

步骤 3

它的使用非常简单。void startAnim(){

avi.show();

// or avi.smoothToShow(); }

void stopAnim(){

avi.hide();

// or avi.smoothToHide(); }

自定义指示器

混淆器

当使用混淆器需要添加规则时:-keep class com.wang.avi.** { *; }

-keep class com.wang.avi.indicators.** { *; }

指标是从类名中加载的,混乱可能会改变它的( 重命名)。

指标

如上面的演示所示,这些指标如下所示:

行 1BallPulseIndicator

BallGridPulseIndicator

BallClipRotateIndicator

BallClipRotatePulseIndicator

行 2SquareSpinIndicator

BallClipRotateMultipleIndicator

BallPulseRiseIndicator

BallRotateIndicator

行 3CubeTransitionIndicator

BallZigZagIndicator

BallZigZagDeflectIndicator

BallTrianglePathIndicator

行 4BallScaleIndicator

LineScaleIndicator

LineScalePartyIndicator

BallScaleMultipleIndicator

行 5BallPulseSyncIndicator

BallBeatIndicator

LineScalePulseOutIndicator

LineScalePulseOutRapidIndicator

行 6BallScaleRippleIndicator

BallScaleRippleMultipleIndicator

BallSpinFadeLoaderIndicator

LineSpinFadeLoaderIndicator

行 7TriangleSkewSpinIndicator

PacmanIndicator

BallGridBeatIndicator

SemiCircleSpinIndicator

行 8com.wang.avi.sample.MyCustomIndicator

谢谢

联系我

如果你有更好的想法或者方法,请让我知道,谢谢:

许可证Copyright 2015 jack wang

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.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值