使用 Delphi 和 FireMonkey 执行与 UIView animateWithDuration 相同的操作的最佳方法是什么?我希望它能够在 iOS 和 Android 上运行(使用 Delphi XE5)
最佳答案
就我而言,我试图对 TImageControl 的大小进行动画处理。
这是我所做的:
- 我将 TFloatAnimation 控件拖到 Canvas 上。
- 使用 Delphi 中的“结构” Pane ,我将 FloatAnimation1 拖到 ImageControl1 上,以便它在结构 Pane 中显示为 ImageControl1 的嵌套组件。
- 根据您的喜好设置持续时间、开始值、停止值等。
- 在我的代码中,我调用了 FloatAnimation1.Start();
关于ios - Delphi FireMonkey 中的 UIView animateWithDuration,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18886163/