80,351
社区成员
发帖
与我相关
我的任务
分享
AnimationSet an=new AnimationSet(true);
/**
* X和Y轴的其实和结束位置
*/
TranslateAnimation tran=new TranslateAnimation
(
an.RELATIVE_TO_SELF,0f,
an.RELATIVE_TO_SELF,1.0f,
an.RELATIVE_TO_SELF,0f,
an.RELATIVE_TO_SELF,0f
);
tran.setDuration(100);
an.addAnimation(tran);
MyImage.startAnimation(an);