【问题标题】:Layout position after RotateAnimationRotateAnimation 后的布局位置
【发布时间】:2012-09-20 17:38:35
【问题描述】:

我正在使用RotateAnimation 旋转我的FrameLayout,其中包含三个ImageView。但是在旋转之后,布局及其子视图返回到动画之前的起始位置。如何让它在动画结束后保持旋转?

【问题讨论】:

  • 这与fillAfter、fillBefore和fillEnabled属性有关。我想我会使用 fillAfter="true"

标签: android rotateanimation


【解决方案1】:

阅读有关动画的文档,尤其是有关 fillAfter 的文档。

http://developer.android.com/reference/android/view/animation/Animation.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多