Rotate Images Around a Circle?(围绕圆圈旋转图像?)
问题描述
请查看此应用快照:
这是一个银行应用程序.银行标志周围有 6 个按钮.您可以通过单击并按住其中一个图像来旋转图像,然后在任一方向(顺时针或逆时针)移动手指.因此,例如,我可以旋转它们以将 Currency Converter 图像放在 Login 图像的位置.
This is a bank application. it has 6 buttons around the bank logo. You can rotate the images by click-and-hold in one of them and move your finger in either direction (clockwise or counter-clockwise). So, for example, I can rotate them to put the Currency Convertor image in the place of the Login image.
在我的应用中,我也有 6 张图片,我想旋转它们.我该怎么做?
In my app, I have 6 Images too, I want to rotate them. How can I do that?
更新:顺便说一句,这是一个 iPhone 应用程序,但我认为这不是 iOS 特定的问题.
Update: BTW, this is an iPhone app but I think it is not iOS-specific issue.
推荐答案
就这样做
RotateAnimation rAnim = new RotateAnimation(0, 359, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
rAnim.setDuration(1000);
image.startAnimation(rAnim);
这篇关于围绕圆圈旋转图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:围绕圆圈旋转图像?
- GPS状态的广播接收器? 2022-01-01
- 如何在 iPhone 模拟器中重置 NSUserDefaults 数据? 2022-01-01
- 使用自动布局向 UIScrollView 添加动态大小的视图 2022-01-01
- URL编码Swift iOS 2022-01-01
- UITextView 内容插图 2022-01-01
- Xcode 7.3 中带有 UILabel 的 UIStackView 2022-01-01
- 在 Iphone SDK 的导航栏上添加多个按钮 2022-01-01
- SetOnItemSelectedListener上的微调程序错误 2022-01-01
- 网上有没有好的 UIScrollView 教程? 2022-01-01
- 类似于 Mail.app 的 iPad 模态视图控制器? 2022-01-01
