FadeOutParticle

Additional

Language
Kotlin
Version
1.1.0 (Jul 1, 2022)
Created
Apr 8, 2022
Updated
Jul 1, 2022 (Retired)
Owner
Hooman Mohammadi (hoomanmmd)
Contributor
Hooman Mohammadi (hoomanmmd)
1
Activity
Badge
Generate
Download
Source code

FadeOutParticle

FadeOutParticle is an animation for disappearing views like TextViews

Installation

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
     ...
  maven { url 'https://jitpack.io' }
 }
} 

Add the dependency

implementation 'com.github.hoomanmmd:fadeoutparticle:1.1.0'

Usage

<com.appgozar.fadeoutparticle.FadeOutParticleFrameLayout  
 android:id="@+id/fade_out_particle"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content">
 <TextView 
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Fade out Particle" 
    />
 </com.appgozar.fadeoutparticle.FadeOutParticleView>  

To start animation

fadeOutParticleFrameLayout.startAnimation()

Reset to initial state

fadeOutParticleFrameLayout.reset()