How to Anim

I learned how to animate today. I had to try 5 different ways but I got something that works nicely. It’s pretty easy and the effect was pretty great.

http://manishkpr.webheavens.com/android-fancy-animated-splash-screen/

I used this method.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


private void StartAni() {

Animation anim = AnimationUtils.loadAnimation(this, R.anim.alpha);
 anim.reset();
 LinearLayout l = (LinearLayout) findViewById(R.id.splash);
 l.clearAnimation();
 l.startAnimation(anim);

anim = AnimationUtils.loadAnimation(this, R.anim.translate);
 anim.reset();
 ImageView i = (ImageView) findViewById(R.id.shenron);
 i.clearAnimation();
 i.startAnimation(anim);
 }

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I can’t wait to see the code of a pro animator. I’m using this code in an app that i’m releasing soon, maybe tomorrow!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s