AndroidSpinKit

Additional

Language
Java
Version
1.1.0 (Sep 20, 2016)
Created
Mar 20, 2016
Updated
Nov 14, 2017
Owner
ybq
Contributors
Alan Tai (ayltai)
start141
songzhw
sunbird89629
ybq
littleGnAl
gautampadiyar
7
Activity
Badge
Generate
Download
Source code
APK file

Announcement

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" }
    }
 }
  1. 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
DoubleBounce
Wave
WanderingCubes
Pulse
ChasingDots
ThreeBounce
Circle
CubeGrid
FadingCircle
FoldingCube
RotatingCircle

Acknowledgements