为什么 IN 转换不适用于第一个打开的表单?
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
转换适用于 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.