Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

alt text 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!

like image 320
Son Nguyen Avatar asked Oct 25 '22 06:10

Son Nguyen


1 Answers

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.

like image 185
V.V Avatar answered Nov 13 '22 23:11

V.V