ios - Delphi FireMonkey 中的 UIView animateWithDuration

标签 ios delphi firemonkey

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

最佳答案

就我而言,我试图对 TImageControl 的大小进行动画处理。

这是我所做的:

  1. 我将 TFloatAnimation 控件拖到 Canvas 上。
  2. 使用 Delphi 中的“结构” Pane ,我将 FloatAnimation1 拖到 ImageControl1 上,以便它在结构 Pane 中显示为 ImageControl1 的嵌套组件。
  3. 根据您的喜好设置持续时间、开始值、停止值等。
  4. 在我的代码中,我调用了 FloatAnimation1.Start();

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

相关文章:

ios - 首次运行IOS时设置默认语言

delphi - SynMultiSyn 荧光笔插入位置

.net - 在 delphi 中使用 COM DLL - MSVCR80D.dll 错误中的访问冲突

c++ - 在没有 Midas.dll C++ 的情况下部署项目

ios - UITextField 的值更改和编辑更改事件之间有什么区别

使用 UISearchController 时,iOS 13 UIBarButtonItem 不可点击且与 UINavigationBars 重叠

iphone - UIView不显示 socket

来自 DLL 的 Delphi 接口(interface)

android - delphi/android如何通过地址找到涉及的代码行

delphi - 在delphi中更改listviewitem文本的颜色