Hi all,
I m really stuck in the animation part of my project. i want to do something like this:
- i have one image. and i want to translate it to the new place through translate animation.
- it also animates.
here is code for the same.
public void animationtshowcard1()
{
Animation a= new TranslateAnimation(2,-50,2,25);
a.setDuration(200);
showcard1.startAnimation(a);
a.setStartOffset(2500);
a.setFillAfter(true);
}
now the problem is:
- when i set the image in XML i set it Invisible.
i m also setting the image invisible in oncreate() method.and on click button also also.
BUT NOW PROBLEM IS WHEN I CLICK ON BUTTON IT IS VISIBLE ON ITS ORIGINAL PLACE AND THEN TRANSLATES TO NEXT LOCATION. I DNT WANT TO MAKE IT VISIBLE UNTIL IT ENDS THE ANIMATION AND IT SHOULD BE VISIBLE ON NEW PLACE.
PLS HELP ME IN THIS CASE.
tHANKS IN ADVANCE :-(