課程
/移動開發
/Android
/Android屬性動畫賞析
第一次點擊移動后,View停留在最后的位置,再次點擊移動,X、Y軸的變化似乎仍然按照一開始的坐標進行變化。
2015-05-19
源自:Android屬性動畫賞析 1-2
正在回答
ObjectAnimator anim1 = ObjectAnimator.ofFloat(imageView, "translationX", 0f, 200f);
你的動畫設置到圖片的X和Y屬性上了吧,應該設置在TranslationX和TranslationY屬性上。
舉報
本次課程,將向你介紹如何使用屬性動畫做出更好的動畫
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-06-23
ObjectAnimator anim1 = ObjectAnimator.ofFloat(imageView, "translationX", 0f, 200f);
2015-06-22
你的動畫設置到圖片的X和Y屬性上了吧,應該設置在TranslationX和TranslationY屬性上。