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