Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ibrahimsn98/android-particles

A lightweight Particle Animation Library for Android
https://github.com/ibrahimsn98/android-particles

android android-animations android-development android-library android-particle-animation android-particle-library android-particles-js particles

Last synced: 4 days ago
JSON representation

A lightweight Particle Animation Library for Android

Awesome Lists containing this project

README

        

# Android Particles
Particle animation library for Android

[![](https://jitpack.io/v/ibrahimsn98/android-particles.svg)](https://jitpack.io/#ibrahimsn98/android-particles)

# Example

# Setup
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.ibrahimsn98:android-particles:2.0'
}
```

# Attributions
```xml

```

# Usage
```kotlin
class MainActivity : AppCompatActivity() {

private lateinit var particleView: ParticleView

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)

particleView = findViewById(R.id.particleView)
}

override fun onResume() {
super.onResume()
particleView.resume()
}

override fun onPause() {
super.onPause()
particleView.pause()
}
}
```

# Inspired From
Thanks to [VincentGarreau](https://github.com/VincentGarreau) for sharing that awesome [javascript library](https://github.com/VincentGarreau/particles.js)

# TODO
- [x] Performance optimizations
- [x] RAM optimizations
- [ ] Touch Event Animations

# License
MIT

> Follow me on Twitter [@ibrahimsn98](https://twitter.com/ibrahimsn98)