MCPcopy Index your code
hub / github.com/HarlonWang/AVLoadingIndicatorView

github.com/HarlonWang/AVLoadingIndicatorView @2.1.0 sqlite

repository ↗ · DeepWiki ↗ · release 2.1.0 ↗
190 symbols 521 edges 35 files 36 documented · 19%
README

Android Arsenal

AVLoadingIndicatorView

Now AVLoadingIndicatorView was updated version to 2.0 , If you have any question or suggestion with this library , welcome to tell me !

如果你对实现各种酷炫的动画效果感兴趣 , 欢迎一起交流 :)

Android动画开源交流QQ群 : 199750106

Introduction

AVLoadingIndicatorView is a collection of nice loading animations for Android.

You can also find iOS version of this here.

Demo

avi

Usage

Step 1

Add dependencies in build.gradle.

    dependencies {
       compile 'com.wang.avi:library:2.1.0'
    }

Step 2

Add the AVLoadingIndicatorView to your layout:

Simple

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

Advance

    <com.wang.avi.AVLoadingIndicatorView
        android:id="@+id/avi"
        android:layout_width="wrap_content"  //or your custom size
        android:layout_height="wrap_content"  //or your custom size
        style="@style/AVLoadingIndicatorView"// or AVLoadingIndicatorView.Large or AVLoadingIndicatorView.Small
        android:visibility="visible"  //visible or gone
        app:indicatorName="BallPulseIndicator"//Indicator Name
        app:indicatorColor="your color"
        />

Step 3

It's very simple use just like .

   void startAnim(){
        avi.show();
   }

   void stopAnim(){
        avi.hide();
   }

Custom Indicator

See MyCustomIndicator in Sample .

Indicators

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

Row 1 * BallPulseIndicator * BallGridPulseIndicator * BallClipRotateIndicator * BallClipRotatePulseIndicator

Row 2 * SquareSpinIndicator * BallClipRotateMultipleIndicator * BallPulseRiseIndicator * BallRotateIndicator

Row 3 * CubeTransitionIndicator * BallZigZagIndicator * BallZigZagDeflectIndicator * BallTrianglePathIndicator

Row 4 * BallScaleIndicator * LineScaleIndicator * LineScalePartyIndicator * BallScaleMultipleIndicator

Row 5 * BallPulseSyncIndicator * BallBeatIndicator * LineScalePulseOutIndicator * LineScalePulseOutRapidIndicator

Row 6 * BallScaleRippleIndicator * BallScaleRippleMultipleIndicator * BallSpinFadeLoaderIndicator * LineSpinFadeLoaderIndicator

Row 7 * TriangleSkewSpinIndicator * PacmanIndicator * BallGridBeatIndicator * SemiCircleSpinIndicator

Row 8 * com.wang.avi.sample.MyCustomIndicator

Thanks

Contact me

If you have a better idea or way on this project, please let me know, thanks :)

Email

Weibo

My Blog

License

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.

Core symbols most depended-on inside this repo

getWidth
called by 83
library/src/main/java/com/wang/avi/Indicator.java
getHeight
called by 60
library/src/main/java/com/wang/avi/Indicator.java
postInvalidate
called by 54
library/src/main/java/com/wang/avi/Indicator.java
addUpdateListener
called by 52
library/src/main/java/com/wang/avi/Indicator.java
drawCircle
called by 21
library/src/main/java/com/wang/avi/indicators/PacmanIndicator.java
setAlpha
called by 11
library/src/main/java/com/wang/avi/Indicator.java
centerX
called by 8
library/src/main/java/com/wang/avi/Indicator.java
centerY
called by 8
library/src/main/java/com/wang/avi/Indicator.java

Shape

Method 153
Class 37

Languages

Java100%

Modules by API surface

library/src/main/java/com/wang/avi/Indicator.java28 symbols
library/src/main/java/com/wang/avi/AVLoadingIndicatorView.java26 symbols
app/src/main/java/com/wang/avi/sample/SampleActivity.java8 symbols
library/src/main/java/com/wang/avi/indicators/BallSpinFadeLoaderIndicator.java7 symbols
library/src/main/java/com/wang/avi/indicators/PacmanIndicator.java6 symbols
library/src/main/java/com/wang/avi/indicators/TriangleSkewSpinIndicator.java5 symbols
library/src/main/java/com/wang/avi/indicators/SquareSpinIndicator.java5 symbols
library/src/main/java/com/wang/avi/indicators/BallRotateIndicator.java5 symbols
library/src/main/java/com/wang/avi/indicators/BallPulseRiseIndicator.java5 symbols
library/src/main/java/com/wang/avi/indicators/SemiCircleSpinIndicator.java4 symbols
library/src/main/java/com/wang/avi/indicators/LineScalePartyIndicator.java4 symbols
library/src/main/java/com/wang/avi/indicators/LineScaleIndicator.java4 symbols

For agents

$ claude mcp add AVLoadingIndicatorView \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact