user6075877 user6075877 - 3 months ago 76
Android Question

How to create Animated Splash Screen such this

Example

I need to make such animated splash screen. Can you help me?

Answer

One way is to use Tween Animation like the following. In your case needs more than one anim file

Animation animation = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.myanimation);

Say like if you have to animate white circle image then do the following

ImageView image = (ImageView)findViewById(R.id.imageView);
      Animation animation1 = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.move);
      image.startAnimation(animation1);

Now you need to create anim file in res/anim/move.xml

<?xml version="1.0" encoding="utf-8"?>
<set
   xmlns:android="http://schemas.android.com/apk/res/android"
   android:interpolator="@android:anim/linear_interpolator"
   android:fillAfter="true">

   <translate
      android:fromXDelta="0%p"
      android:toXDelta="75%p"
      android:duration="800" />
</set>

This is an example. You need to find ways to modify these basic animations for your requirement . For more refer this link

Comments