admin管理员组

文章数量:1597417

AVLoadingIndicatorView

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

简介

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

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

演示

用法

步骤 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/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.

本文标签: 动画下载加载androidAVLoadingIndicatorView