我仍然有最基本的需求問題。 我想要2個按鈕:一個運行一個補間動畫,將圖像移動50個像素,另一個按鈕在該圖像上通過幀動畫運行一幀。結合補間和逐幀動畫
補間動畫完成後,逐幀動畫會在錯誤的位置運行。奇怪的。 我使用FillAfter/FillEnabled,
代碼運行補間動畫是一個基本 TranslateAnimation(0,50,0,0)與填充後和fillEnabled =真。
frame by frame code is image.setImageDrawable(getResources()。getDrawable(resourceId)); ((AnimationDrawable)image.getDrawable())。start();
幫助將不勝感激。
乾杯