Skip to content

安卓加载动画在-原库上增加新的动画效果

License

Notifications You must be signed in to change notification settings

Hasiy/Android-SpinKit

 
 

Repository files navigation

Android-SpinKit

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

fromAndroid-SpinKit add Heartbeat

Preview

Gradle Dependency

dependencies {
   implementation "top.hasiy:Android-SpinKit:1.0.0"
}

Usage

  • Xml
<top.hasiy.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);
Sprite 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
Heartbeat Heartbeat

Acknowledgements

About

安卓加载动画在-原库上增加新的动画效果

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%