非常漂亮的进度指示器AVLoadingIndicatorView

AVLoadingIndicatorView是一款适用于Android平台的精美加载动画集合。它包含了多种风格的加载指示器,并且使用简单,如同Progressbar一样易于集成到项目中。此库还提供了iOS版本。

AVLoadingIndicatorView

Introduction

AVLoadingIndicatorView is a collection of nice loading animations for Android.

You can also find iOS version of this here.

Demo

Download Apk

Usage

Step 1

Add dependencies in build.gradle.

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

Step 2

Add the AVLoadingIndicatorView to your layout:

    <com.wang.avi.AVLoadingIndicatorView
        android:id="@+id/avloadingIndicatorView"
        android:layout_width="wrap_content"  //or your custom size
        android:layout_height="wrap_content"  //or your custom size
        android:visibility="visible"  //visible or gone
        app:indicator="BallPulse"
        app:indicator_color="your color"
        />

Step 3

It's very simple use just like Progressbar.

   void startAnim(){
        findViewById(R.id.avloadingIndicatorView).setVisibility(View.VISIBLE);
   }

   void stopAnim(){
        findViewById(R.id.avloadingIndicatorView).setVisibility(View.GONE);
   }

If you want use this with Dialog , Here are mine com.wang.avi.sample.MainActivity.

Indicators

As seen above in the Demo, the indicators are as follows:

Row 1

  • BallPulse
  • BallGridPulse
  • BallClipRotate
  • BallClipRotatePulse

Row 2

  • SquareSpin
  • BallClipRotateMultiple
  • BallPulseRise
  • BallRotate

Row 3

  • CubeTransition
  • BallZigZag
  • BallZigZagDeflect
  • BallTrianglePath

Row 4

  • BallScale
  • LineScale
  • LineScaleParty
  • BallScaleMultiple

Row 5

  • BallPulseSync
  • BallBeat
  • LineScalePulseOut
  • LineScalePulseOutRapid

Row 6

  • BallScaleRipple
  • BallScaleRippleMultiple
  • BallSpinFadeLoader
  • LineSpinFadeLoader

Row 7

  • TriangleSkewSpin
  • Pacman
  • BallGridBeat
  • SemiCircleSpin
项目地址:https://github.com/81813780/AVLoadingIndicatorView
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值