Loading...

Fade In Animation in Android

In this tutorial, you will learn to make fade in animation in android application. In android, there are many ways to make fade in animation and here I have used <alpha> tag. For the fade in animation using <alpha> tag you have to create an anim folder in your res directory.

Related:
Zoom Out Animation in Android
Android WebView Tutorial with Example
How to Implement Ripple Effect in Android

Android Fade In Animation Example


Create an anim folder in res/ directory and also create fade_in_animation.xml file in res/anim/ directory and place the following content.

res/anim/fade_in_animation.xml

XML Layout File

res/layout/android_fadein_animation.xml

Java Activity File

src/FadeInAnimation.java

Strings.xml File

res/values/strings.xml

Now, run your android fade in application and click the Fade In Animation button.

Output:

Fade In Animation Example in Android
Android FadeIn Animation
XML 6223637119090939350
Home item