gitmyhub

Android-SpinKit

Java ★ 8.6k updated 3y ago

Android loading animations

A small Android library that adds 12 animated loading spinner styles, bouncing dots, folding cubes, wave patterns, and more, to any app with a single Gradle dependency line.

JavaAndroidGradlesetup: easycomplexity 2/5

Android-SpinKit is a small Java library that gives Android app developers a collection of animated loading indicators. When an app is fetching data or doing background work, it typically shows a spinner to let the user know something is happening. This library provides twelve distinct animation styles beyond the plain circular progress bar that Android ships with by default.

The animation styles include things like bouncing dots, a wave pattern, wandering cubes, a folding cube, chasing dots, and several circular variations that fade or rotate. The README shows animated preview images for each style side by side, making it easy to pick one. All styles are implemented in Java as custom drawables, so they slot into Android's standard ProgressBar component without needing a separate view type. You can also use the included SpinKitView directly in XML layouts if you prefer.

Adding the library to an Android project takes a single line in the Gradle build file. Color customization is available through an XML attribute, and preset size styles (small, large) are included. The project is a port of SpinKit, a similar set of CSS loading animations for web pages originally made by Tobias Ahlin, adapted here for the Android platform.

The README is brief and focused on practical setup. A downloadable demo APK is linked at the top so developers can try the animations on a real device before adding the dependency. There is no complex configuration, no network requirements, and no dependencies beyond the standard Android build toolchain.

Where it fits