Recently set-top box applications, the need to hide android 4.0.x below (navigation bar + status bar), in the upper I tried various methods are listed below:
getWindow () getDecorView () setSystemUiVisibility (View.STATUS_BAR_HIDDEN);..
getWindow () getDecorView () setSystemUiVisibility (View.SYSTEM_UI_FLAG_LOW_PROFILE);..
getWindow () getDecorView () setSystemUiVisibility (View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);..
. getWindow () getDecorView () setSystemUiVisibility (4);.
I would framework / base / packages / SystemUI following tricks (deleted directly to the application), really do full-screen, but would not be able to use a lot of things to follow, such as wallpaper, USB, etc. should be re-wrote it myself, brother Here urge Which expert guidance twelve, anxious, etc. ......
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
This should not be difficult Bangding
Reply:
The activity can be set to full screen, there are two ways
1 In the manifest, set the activity's theme is no titlebar, full screen and the like.
2 set by code, getWindow (). SetFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
Reply:
The above method does not work, the last modified source: SystemUI, the problem is solved ...
Reply:
May I ask what the next modification was achieved in SystemUI hidden ah?
Reply:
No comments:
Post a Comment