iTu*_*rki 8 android rotation image-rotation
请看一下这个应用程序快照:

这是银行申请.银行标识周围有6个按钮.您可以通过在其中一个中单击并按住来旋转图像,并沿任一方向(顺时针或逆时针)移动手指.因此,例如,我可以旋转它们将Currency Convertor图像放在图像的位置Login.
在我的应用程序中,我也有6个图像,我想旋转它们.我怎样才能做到这一点?
更新:BTW,这是一个iPhone应用程序,但我认为这不是iOS特定的问题.
小智 0
只要这样做
RotateAnimation rAnim = new RotateAnimation(0, 359, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
rAnim.setDuration(1000);
image.startAnimation(rAnim);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5914 次 |
| 最近记录: |