FadeOutParticle

Additional

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

Blurb

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.0.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()