在Android4.4上 使用TranslateAnimation动画位移会有卡顿现象,如果在别的版本中将
android:hardwareAccelerated="false"
设置成这个属性也会有卡顿问题,经过一系列的排查就是这个问题
https://code.google.com/p/android/issues/detail?id=63003
这儿有人提出来了,但是还是没有得到解决!
但是在我师傅发给我的邮件中犀利的解决了!
动画的替换:TranslateAnimation 替换 ViewPropertyAnimator,
http://devel
使用方法:
animate().translationXBy(x).translationYBy(y).setDuration(400).setInterpolator(new DecelerateInterpolator()).start();
感谢师傅sjq!
分享是一种美德!

本文介绍了在Android4.4版本上使用TranslateAnimation动画位移时遇到卡顿问题的原因,并提供了通过动画替换ViewPropertyAnimator解决此问题的方法。分享了师傅sjq的解决方案,包括如何正确使用ViewPropertyAnimator进行动画处理,以及关键词和新标签的建议。
7651

被折叠的 条评论
为什么被折叠?



