Android加载中动画

AVLoadingIndicatorView 包含一组漂亮的Android加载中动画。

示例

Download Apk

用法

步骤1

Add dependencies in build.gradle.

    dependencies {
       compile 'com.wang.avi:library:1.0.0'
       compile 'com.nineoldandroids:library:2.4.0'
    }

步骤2

Add the AVLoadingIndicatorView to your layout:

    

app:indicator里填入下列列表的各种样式的加载,顺序和上图一样

Indicators

Here they are

  • BallPulse
  • BallGridPulse
  • BallClipRotate
  • BallClipRotatePulse
  • SquareSpin
  • BallClipRotateMultiple
  • BallPulseRise
  • BallRotate
  • CubeTransition
  • BallZigZag
  • BallZigZagDeflect
  • BallTrianglePath
  • BallScale
  • LineScale
  • LineScaleParty
  • BallScaleMultiple
  • BallPulseSync
  • BallBeat
  • LineScalePulseOut
  • LineScalePulseOutRapid
  • BallScaleRipple
  • BallScaleRippleMultiple
  • BallSpinFadeLoader
  • LineSpinFadeLoader
  • TriangleSkewSpin
  • Pacman
  • BallGridBeat
  • SemiCircleSpin

你可能感兴趣的:(Android)