Codename One iOS Statusbar on landscape orientation

六眼飞鱼酱① 提交于 2021-02-08 06:59:50

问题


I think that the iOS Statusbar doesn’t make sense when the device is landscape orientated. How can I make a Codename One app showing the Statusbar only on portrait?


回答1:


We'll add support for it in the code freeze which should land on the 20th.

landscapeTitleUiidBool should have impacted the status bar too so it would have the StatusBarLandscape UIID when running in landscape. See the discussion about the landscapeTitleUiidBool theme constant here: https://www.codenameone.com/blog/ios-back-command-behavior.html

To do this you would just need to override the StatusBarLandscape UIID and define landscapeTitleUiidBool to true.



来源:https://stackoverflow.com/questions/54712910/codename-one-ios-statusbar-on-landscape-orientation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!