ShineButton is an Android UI library that adds a customizable shining particle effect to buttons, inspired by social like animations. It supports XML layouts, Java, Jetpack Compose, and dialogs.
Overview
ShineButton lets Android apps add animated shine bursts around a control when users tap it. You can define the control shape with a PNG mask or vector drawable, tune particle count, colors, distances, and animation timing, and optionally randomize shine colors.
The widget is meant to drop into standard layouts or Compose screens with light dependencies. Attributes cover initial and checked fill colors, flash mode, and separate durations for click versus shine motion. For dialogs, a dedicated fix method keeps rendering correct inside modal windows.
Distribution is through Maven Central or JitPack for current builds. The library targets older Android API levels while offering Kotlin, Compose, and Material 3 oriented demo updates. Community bindings exist for React Native and NativeScript outside the core package.
Key features
- PNG and vector shape masks
- Adjustable shine particles
- Click and shine animations
- Optional random shine colors
- Dialog rendering helper
- XML attribute configuration
- Jetpack Compose composable
- Java API setters
Use cases
- Like or favorite buttons
- Branded interactive icons
- Compose social reactions
- Dialog action highlights
- Custom-shaped toggles