Hi Blake / Mark,
I chose Mark's second option and yes i got the flash effect at the end.But
as you say that move the view before animation , but I am calculating the
views position at the end of animation and moving the layout.If i move the
view before animation how would i suppose to find the position ?
*Can you guys suggest better idea for that?*
here is the code snippet :
Animation animation = new TranslateAnimation(0, 0, 0, -200);
animation.setDuration(1000);
relativeMain.startAnimation(animation);
animation.setAnimationListener(new AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
left = relativeMain.getLeft();
top = relativeMain.getTop();
right = relativeMain.getRight();
bottom = relativeMain.getBottom();
relativeMain.layout(left, top - 200, right , bottom -200 ); //
layout to be moved upward after translate animation
}
});
On Wednesday, 23 January 2013 20:43:13 UTC+5:30, G. Blake Meike wrote:
>
>
> If you choose Mark's second solution, be sure to move the view *before*
> the animation. If you don't you'll get a flash at the end of the
> animation, when you move the view.
>
> -blake
>
--
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