Android对象动画无法顺利运行

Android对象动画无法顺利运行,android,objectanimator,Android,Objectanimator,我正在使用ObjectAnimator将RelativeLayout的位置从屏幕中心移动到上方。动画在RelativeLayout上工作,但移动不平稳。它在开始位置和结束位置之间跳跃。 代码: 改用ViewPropertyAnimator animate(view).y(350f).setInterpolator(new LinearInterpolator()).setDuration(1500).start(); 如果将相对布局交换为内部带有ImageView的FrameLayout,动画

我正在使用ObjectAnimator将RelativeLayout的位置从屏幕中心移动到上方。动画在RelativeLayout上工作,但移动不平稳。它在开始位置和结束位置之间跳跃。 代码:


改用ViewPropertyAnimator

animate(view).y(350f).setInterpolator(new LinearInterpolator()).setDuration(1500).start();

如果将相对布局交换为内部带有ImageView的FrameLayout,动画运行是否平稳?
animate(view).y(350f).setInterpolator(new LinearInterpolator()).setDuration(1500).start();