so, 
this is something irritatingly buggy.

after moving line no. 2 < which is *myAnimationSet.setDuration(2000);* > 
down to the line right before line no. 6 < which is *
v.startAnimation(myAnimationSet);* >

it worked

hence, before,
AnimationSet myAnimationSet = new AnimationSet(true);
myAnimationSet.setDuration(2000);
myAnimationSet.addAnimation(new AlphaAnimation(1.0f, 0.0f));
myAnimationSet.addAnimation(new TranslateAnimation(0, 0, 0, 100));
v.startAnimation(myAnimationSet);

after,
AnimationSet myAnimationSet = new AnimationSet(true);
myAnimationSet.addAnimation(new AlphaAnimation(1.0f, 0.0f));
myAnimationSet.addAnimation(new TranslateAnimation(0, 0, 0, 100));
myAnimationSet.setDuration(2000);
v.startAnimation(myAnimationSet);

this is not so intuitive i would say.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to