A lightweight Particle Animation Library for Android
Clone or download
Latest commit c9bbf1f Dec 28, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app update art Dec 28, 2018
art update art Dec 28, 2018
gradle/wrapper initial Dec 16, 2018
particle decrease min sdk version Dec 27, 2018
.gitignore initial Dec 16, 2018
LICENSE Initial commit Dec 16, 2018
README.md update readme Dec 28, 2018
build.gradle initial Dec 16, 2018
gradle.properties initial Dec 16, 2018
gradlew initial Dec 16, 2018
gradlew.bat initial Dec 16, 2018
settings.gradle initial Dec 16, 2018

README.md

Android Particles

Particle animation library for Android

Example

Setup

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
dependencies {
      implementation 'com.github.ibrahimsn98:android-particles:1.6'
}

Attributions

<me.ibrahimsn.particle.ParticleView
        android:id="@+id/particleView"                        
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:particleCount="20"
        app:minParticleRadius="5"
        app:maxParticleRadius="12"
        app:particleColor="@android:color/white"
        app:backgroundColor="@android:color/holo_red_light" />

Usage

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 for sharing that awesome javascript library

TODO

  • Performance optimizations
  • RAM optimizations
  • Touch Event Animations

License

MIT

Follow me on Twitter @ibrahimsn98