2011-06-26 35 views
0

我所希望做的是上点击按钮,激活3 TranslateAnimation类时滞动画

case R.id.button18Holes: 

     //*********************************// 
     //***LAUNCHES ACTUAL APPLICATION***// 
     //*********************************// 
     TranslateAnimation slide = new TranslateAnimation(0, -500, 0,0); 
     slide.setDuration(1000); 
     slide.setFillAfter(true); 
     buttonHelp.startAnimation(slide); <-- first 
     button9Holes.startAnimation(slide); <-- should start slightly after first 
     button18Holes.startAnimation(slide); <-- should start slightly after second 

//This should wait until all animations are complete 
     Intent myIntent = new Intent(src.getContext(), EasyPar.class); 
     startActivityForResult(myIntent, 0); 

     break; 

如何获得这种效果的其他后滑动按钮关闭屏幕一个不确定。

回答