Imitated 12306 exchange animation city, around for two spinner using displacement after the exchange of animation, spinner drop-down list select city name on the left, the left spinner displays the contents of the same, on the right side of the spinner content change,
The code is as follows:
Private void startTranslationAnimation () {
//departure city animation
TranslateAnimation translateAnimation1=new TranslateAnimation (0.0 f, f 700.0, 0.0 f, 0.0 f);
TranslateAnimation1. SetFillAfter (true);
TranslateAnimation1. SetDuration (1000);
StartCity. StartAnimation (translateAnimation1);
//the end city animation
TranslateAnimation translateAnimation2=new TranslateAnimation (0.0 f to 700.0 f to 0.0 f to 0.0 f);
TranslateAnimation2. SetFillAfter (true);
TranslateAnimation2. SetDuration (1000);
EndCity. StartAnimation (translateAnimation2);
}
My novice one, I wish, your advice