2

使用 Delphi 和 FireMonkey 执行与 UIView animateWithDuration 相同的操作的最佳方法是什么?我希望它可以在 iOS 和 Android 上运行(使用 Delphi XE5)

4

1 回答 1

2

就我而言,我试图为 TImageControl 的大小设置动画。

这是我所做的:

  1. 我将一个 TFloatAnimation 控件拖到画布上。
  2. 使用 Delphi 中的 Structure 窗格,我将 FloatAnimation1 拖到 ImageControl1 上,因此它在结构窗格中显示为 ImageControl1 的嵌套组件。
  3. 根据您的喜好设置 Duration、StartValue、StopValue 等。
  4. 在我的代码中,我调用了 FloatAnimation1.Start();
于 2013-09-19T04:39:08.393 回答