Home > Mobile >  Problem as shown in figure, can they answer
Problem as shown in figure, can they answer

Time:09-20

Problem as shown in figure, the right is my application, I think in this effect, that is is not above the status bar, now I want to send this layout to the top to do not know to have good way, I saw their solution is not enough, such as this effect is what I want to get a full page, like a call to start page thank you

CodePudding user response:

Have you ever set windowFullscreen, for some mobile phone manufacturer, if not yet, can add a
in the mainfest file<meta - data android: name="android. Max_aspect" android: value="https://bbs.csdn.net/topics/2.4"/& gt;
Numerical adjustable

CodePudding user response:

If want to full screen theme set full screen is ok & lt; The item name="android: windowFullscreen & gt;" True

CodePudding user response:

reference 1st floor BDMH response:
did you set the windowFullscreen, for some mobile phone manufacturer, if not yet, can add a
in the mainfest file<meta - data android: name="android. Max_aspect" android: value="https://bbs.csdn.net/topics/2.4"/& gt;
Numerical adjustable

<style name="Dialog_b" parent "=" android: Theme. Material. NoActionBar "& gt;








</style>
I start page is such a configuration, but it can only be stretched the layout to the status bar, above the status bar of the word of what is still there, what I need is to remove them but can't be alone and I figure that as above is just the status bar, darkened, you to see the one on the start page

CodePudding user response:

You: that's a good idea, but like I above the effect is just peel the status bar simple dark??

CodePudding user response:

See your Settings, there is no windowFullscreen

CodePudding user response:

reference 5 floor BDMH reply:
see your Settings, no windowFullscreen

This is the status bar directly cut off, not full screen??

CodePudding user response:

reference 5 floor BDMH reply:
see your Settings, no windowFullscreen

When you look at my hair problem of the second figure, you look at the size is cut off

CodePudding user response:

This style of Activity plus




This Activity code plus
GetWindow (). GetDecorView (.) setSystemUiVisibility (the SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | the SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | the SYSTEM_UI_FLAG_LAYOUT_STABLE);
  • Related