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:

    <com.wang.avi.AVLoadingIndicatorView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:indicator="BallPulse"
        />

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

發佈了39 篇原創文章 · 獲贊 10 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章