[英]how to Ceate ObjectAnimator animation to mp4 Video?
我正在尝试为m4视频创建ObjectAnimator动画。
有人给我解决办法吗?
ObjectAnimator动画代码:
public void animation(){
ObjectAnimator fadeOut = ObjectAnimator.ofFloat(aniView, "alpha", 0f);
fadeOut.setDuration(1000);
ObjectAnimator mover = ObjectAnimator.ofFloat(aniView, "translationY", -700f, 0f);
mover.setDuration(1000);
ObjectAnimator fadeIn = ObjectAnimator.ofFloat(aniView, "alpha", 0.8f, 1f);
fadeIn.setDuration(1000);
AnimatorSet animatorSet = new AnimatorSet();
// animatorSet.play(mover).with(fadeIn).after(fadeOut);
animatorSet.play(fadeOut).after(mover).with(fadeIn);
animatorSet.start();
}
您不能为视频创建ObjectAnimator。 您只能为将用于显示视频的View
设置动画。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.