https://github.com/rolud/solidglowanimation
Android component to fast implements a glow animation behind views.
https://github.com/rolud/solidglowanimation
android android-animation android-app android-library android-ui animation ui ui-component
Last synced: 9 months ago
JSON representation
Android component to fast implements a glow animation behind views.
- Host: GitHub
- URL: https://github.com/rolud/solidglowanimation
- Owner: rolud
- License: mit
- Created: 2020-05-10T14:14:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-11T08:12:13.000Z (about 6 years ago)
- Last Synced: 2025-09-11T07:05:23.448Z (9 months ago)
- Topics: android, android-animation, android-app, android-library, android-ui, animation, ui, ui-component
- Language: Kotlin
- Size: 142 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **SolidGlowAnimation**



Android component to fast implements a glow animation behind views.
SolidGlowAnimation allows to create an animated glow around views. It supports:
- layers
- up to 5 different colors
- rounded corners
- customizable duration
- customizable start delay

## **Usage**
In XML layout, wrap the view you want to add animation with SolidGlowAnimation:
```xml
```
### Available attributes
- **layers** (integer) : number of animated layers.
- **color1**, **color2**, **color3**, **color4**, **color5** (color)
- **duration** (integer) : single layer animation duration in milliseconds
- **startDelay** (integer) : delay with which the animation starts, in milliseconds
- **radius** (dimension) : set coner radius
- **scaleMax** (float) : set max dimension of the animation
To start animation:
```kotlin
solidGlowAnimation.startAnimation()
```
To stop animation:
```kotlin
solidGlowAnimation.stopAnimation()
```
## **Gradle**
To use SolidGlowAnimation, in project's build.gradle add:
```gradle
allProjecs {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
In app's build.gradle add:
```gradle
dependencies {
implementation 'com.github.rolud:SolidGlowAnimation:1.0.2'
}
```
---
[License](./LICENSE.md)