An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# **SolidGlowAnimation**

![Platform](https://img.shields.io/badge/platform-Android-brightgreen)
![Jitpack](https://img.shields.io/badge/JitPack-1.0.2-brightgreen)
![Kotlin](https://img.shields.io/badge/made%20with-Kotlin-orange)

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

![example](https://media1.giphy.com/media/MDlqewpg2nWQFqCi1p/giphy.gif)

## **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)