Android loading animations
Java
Latest commit d845f60 Sep 20, 2016 ybq Update LICENSE
Permalink
Failed to load latest commit information.
art Update screen.gif Aug 10, 2016
gradle/wrapper fixed issue #19 Sep 20, 2016
library fixed issue #19 Sep 20, 2016
sample fixed issue #19 Sep 20, 2016
.gitignore Initial commit Mar 20, 2016
LICENSE Update LICENSE Sep 20, 2016
README.md Update LICENSE Sep 20, 2016
README_zh-CN.md Update LICENSE Sep 20, 2016
build.gradle fixed issue #19 Sep 20, 2016
gradle.properties Initial commit Mar 20, 2016
gradlew Initial commit Mar 20, 2016
gradlew.bat Initial commit Mar 20, 2016
settings.gradle Initial commit Mar 20, 2016

README.md

Android-SpinKit

Android loading animations(I wrote a android edition according SpinKit)

Preview

Gradle Dependency

  1. Add the JitPack repository to your build file

    allprojects {
                repositories {
                    ...
                    maven { url "https://jitpack.io" }
                }
    }
  2. Add the dependency

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

Usage

  • Xml

    <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" />         
  • ProgressBar

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

Style

@style/SpinKitView
@style/SpinKitView.Circle
@style/SpinKitView.Large
@style/SpinKitView.Small
@style/SpinKitView.Small.DoubleBounce   
Style Preview
RotatingPlane RotatingPlane
DoubleBounce DoubleBounce
Wave Wave
WanderingCubes WanderingCubes
Pulse Pulse
ChasingDots ChasingDots
ThreeBounce ThreeBounce
Circle Circle
CubeGrid CubeGrid
FadingCircle FadingCircle
FoldingCube FoldingCube
RotatingCircle RotatingCircle

Acknowledgements