【发布时间】:2014-03-03 06:52:37
【问题描述】:
我的应用中有一个 TextView,我希望它从左边缘沿 Y 轴旋转。
使用此代码,
<rotate
android:fromDegrees="90"
android:toDegrees="0"
android:pivotX="0%"
android:pivotY="0%"
android:duration="2000" />
我可以让它沿左边缘旋转,但它不会沿 Y 轴移动。
但是,当我使用 objectAnimator 时,它确实使用它的 rotationY 属性沿 Y 轴移动,但是我无法设置值 pivotX 和 pivotY 使其沿中心而不是从左边缘旋转。
如何同时实现这两件事?
请帮帮我!!
提前致谢。
【问题讨论】: