android 怎么让图片实现朝Z轴的方向旋转?RotateAnimation是x y方向的,我想要包含z方向的

2025-05-05 10:35:13
推荐回答(1个)
回答1:

RotateAnimation是不可以绕Z轴旋转的,如果LZ想要实现Z轴旋转效果,可以看下matrix这个类(实际还是opengl),可以给LZ例举下:
rotateX(float degree) 绕着x轴旋转degree个度数
rotateY(float degree) 绕着y轴旋转degree个度数
rotateZ(float degree) 绕着z轴旋转degree个度数