为什么 IN 转换不适用于第一个打开的表单?

发布于 2024-12-14 00:01:19 字数 151 浏览 3 评论 0原文

在 MIDLet 的 startApp() 中,我显示了一个表单(应用程序的主表单)。问题是,即使我设置了 setTransitionInAnimator,Transition 在运行时也不会生效!那么如何从 MIDLet 中第一个打开的 Form 进行转换呢?

In the startApp() of the MIDLet I show a Form ( the main Form of the application ) . The problem is that even if I set setTransitionInAnimator then the Transition is not effect at runtime ! So how to make transition for the first opened Form from the MIDLet ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

薄荷港 2024-12-21 00:01:19

转换适用于 2 个组件/表单之间,因此第一个表单永远不会有转换,因为没有任何内容可供转换。例如,启动屏幕永远不会滑入到位,它只会出现。

要实现转换,只需创建一个空白表单并对其应用转换,我建议避免该策略,因为没有设备执行此类转换。 iPhone/Android 等设备会在本机层执行转换以显示初始形式,这也适用于 LWUIT 应用程序。

Transitions apply between 2 components/forms hence the first form will never have a transition since there is nothing to transition from. E.g. a splash screen will never slide into place it will just appear.

To effect a transition just create a blank form and apply to it a transition out, I would suggest avoiding that strategy though since no device performs such a transition. Devices such as iPhone/Android who perform a transition to show the initial form do that in the native layer which applies to LWUIT applications as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文