当android中的方向改变时,本机android会调用destroy方法,据我所知,总的新布局也是如此 . 但我认为codenameone不会做那件好事 . 但是当我在设备中检查cn1应用程序的同时从纵向更改为横向时,会看到空白屏幕一段时间,然后方向会发生变化 .
My Problem is that when I have many more components displayed in a form,
the blank screen appears for a longer duration and sometime it hangs. Does it
happen as I don't use Orientation listener methods etc or is there anything I
can do to solve this issue?
1 回答
我只是在我的设备上试过这个,它在我的Android 6设备上的最新版本上运行良好 . Android中有旋转动画,屏幕旋转到新的位置 .
我猜测你的屏幕渲染是如此之慢,以至于Android花费太长时间来绘制它并最终绘制黑色屏幕,因此它可以继续动画 .
我无法远程对应用程序进行基准测试,但我建议going over the performance of your app并确保它是真正优化的 .