求大神解释一下setRotationY
fx1ts 2016-02-03 04:04:57 setRotationY api文档上的解释是通过点(pivotx,pivoty)绕Y轴旋转。
可以通过setPivotX,setPivotY设置旋转点。如以下代码所示
ViewHelper.setPivotX(right, right.getMeasuredWidth()*0.5f);
ViewHelper.setPivotY(right, right.getMeasuredHeight()*0.5f);
ViewHelper.setTranslationX(right, mTrans);
不明白如何通过一个点绕Y轴旋转?
经过测试,设置不同的旋转点,对旋转效果影响很大。