hide status bar in landscape mode leave a blank space when rotating

爷,独闯天下 提交于 2019-12-12 11:10:25

问题


My application support to display some screen in landscape mode, and in landscape mode, I set to hide the status bar to get mode space to display data.

The problem is while hiding the status bar and rotate screen, it leave a white pace at status bar position until the screen is rotated completely as below screenshot.

I guess that steps of operations when rotating screen are: 1. hide status bar 2. rotate screen 3. resize screen to take place of status bar.

So until the screen is rotated completely, user still can see the white space, it is not good and I want to do something such as: set color for that blank space to black, or set animation to hide that blank space but unlucky!

So, does anyone have solution to resolve this, please help me, thanks a lot!


回答1:


you should make the size of view 320 * 480. as you might have hidden the statusbar but the size of view will be 320 * 460(default)

Check out this one.



来源:https://stackoverflow.com/questions/3758175/hide-status-bar-in-landscape-mode-leave-a-blank-space-when-rotating

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