Android Loading Animations – Spinkit Library

Published by Kapil Mohan on

Android loading animations

Github:- https://github.com/ybq/Android-SpinKit

dependencies {
   implementation 'com.github.ybq:Android-SpinKit:1.2.0'
}
<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" />  

Can be used with android progress bar. Java code for progress bar:

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

Available Styles:

change style in base xml

@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

Library Details:-

Github:- https://github.com/ybq/Android-SpinKit

  • Language:- java
  • License:- MIT


Kapil Mohan

Like to add color to developers life and apps. Can create smile using Android, iOS, PHP, codeignitor, web technologies, etc... Feel free to contact me at [email protected] .