How to create an animation in a splash screen?

  1. use gif

OR

  1. use Animation :

    Ex) Awesome-looking customizable splash screen : AwesomeSplash


You can also use your own created gif images to show on the imageview at splash screen through Glide image loading and caching library.

Like :

ImageView imageView = (ImageView) findViewById(R.id.imageView);

GlideDrawableImageViewTarget imageViewTarget = new GlideDrawableImageViewTarget(imageView);

Glide.with(this).load(R.raw.gif_image).into(imageViewTarget);

paste this xml

<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:interpolator="@android:anim/bounce_interpolator" >

    <scale
        android:duration="600"
        android:fromXScale="1"
        android:fromYScale="0.5"
        android:pivotX="50%"
        android:pivotY="0%"
        android:toXScale="1.0"
        android:toYScale="1.0" />

    <alpha
        android:duration="600"
        android:fromAlpha="0.0"
        android:toAlpha="1.0" />

</set>

and on the splash screen

Animation animation = AnimationUtils.loadAnimation(contex, R.anim.blink);
        animation.setInterpolator(new LinearInterpolator());
        animation.setRepeatCount(Animation.INFINITE);
        animation.setDuration(700);

and use this Animation like

final ImageView splash = (ImageView) findViewById(R.id.btnrecievecall);
        splash.startAnimation(animation)