我做了一个自定义viewgroup,我需要用view animation来旋转一些view...
但它们的行为不正常,无论我将 startanimation 放在 onDraw、onLayout 还是 onMeasure 中,我的 View 都会闪烁(您会看到它们短暂旋转,然后短暂不旋转,并且重复这种模式)。
我该如何解决?
最佳答案
参见 Android transfer animation of view in custom viewgroup和 Animating Views
view.animate().rotation(180);
关于android - 带有动画 View 的自定义 View 组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5993473/