[英]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.