gpt4 book ai didi

ios - Delphi FireMonkey 中的 UIView animateWithDuration

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:10:56 25 4
gpt4 key购买 nike

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

最佳答案

在我的例子中,我试图为 TImageControl 的大小设置动画。

这是我做的:

  1. 我将一个 TFloatAnimation 控件拖到 Canvas 上。
  2. 使用 Delphi 中的结构 Pane ,我将 FloatAnimation1 拖到 ImageControl1 上,因此它在结构 Pane 中显示为 ImageControl1 的嵌套组件。
  3. 根据自己的喜好设置 Duration、StartValue、StopValue 等。
  4. 在我的代码中调用了 FloatAnimation1.Start();

关于ios - Delphi FireMonkey 中的 UIView animateWithDuration,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18886163/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com