Android-SpinKit

介绍:

多个漂亮的加载效果。

运行效果:

使用说明:

Gradle 依赖

1.在项目根目录的build.gradle添加

allprojects {
        repositories {
            ...
            maven { url "https://jitpack.io" }
        }
    }

2.添加依赖

dependencies {
    compile 'com.github.ybq:Android-SpinKit:1.0.1'
 }

使用

<com.github.ybq.android.spinkit.SpinKitView 
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:id="@+id/spin_kit"
     style="@style/SpinKitView.Large.Circle"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_gravity="center"
     app:SpinKit_Color="@color/colorAccent" />
@style/SpinKitView
@style/SpinKitView.Circle
@style/SpinKitView.Large
@style/SpinKitView.Small
@style/SpinKitView.Small.DoubleBounce

               

ProgressBar

ProgressBar progressBar = (ProgressBar)findViewById(R.id.progress);
DoubleBounce doubleBounce = new DoubleBounce();
progressBar.setIndeterminateDrawable(doubleBounce);

样式:

样式预览
RotatingPlaneRotatingPlane
DoubleBounceDoubleBounce
WaveWave
WanderingCubesWanderingCubes
PulsePulse
ChasingDotsChasingDots
ThreeBounceThreeBounce
CircleCircle
CubeGridCubeGrid
FadingCircleFadingCircle
FoldingCubeFoldingCube

|

已下载
0