Animation is a process that makes a visual more attractive and eye-catching. In android, animation can be created in multiple ways. Here we will see a simple animation Blink animation in this tutorial. So you need to create an XML file for the same. You can refer to the code snippet below for Blink Animation:
<set xmlns:android = "https://schemas.android.com/apk/res/android">
<alpha android:fromAlpha = "0.0"
android:toAlpha = "1.0"
android:interpolator = "@android:anim/accelerate_interpolator"
android:duration = "500"
android:repeatMode = "reverse"
android:repeatCount = "10"/>
</set>
This way you can add an animation to your android application and connect all the files using the Androidmanifest.xml file.