The Android Arsenal – Animations

[ad_1]

FadeOutParticle is an animation for disappearing views like TextViews

Set up

Add it in your root construct.gradle on the finish of repositories:

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

Add the dependency

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

Utilization

<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:textual content="Fade out Particle" 
    />
 </com.appgozar.fadeoutparticle.FadeOutParticleView>  

To start out animation

fadeOutParticleFrameLayout.startAnimation()

Reset to preliminary state

fadeOutParticleFrameLayout.reset()

[ad_2]

Source_link

Leave a Comment