小编Moh*_*our的帖子

Galaxy S10,S10 +全屏模式

如何使用Samsung Galaxy S10和S10 +实现全屏模式,以下代码对我不起作用:

getWindow().getDecorView().setSystemUiVisibility(
// Set the content to appear under the system bars so that the
// content doesn't resize when the system bars hide and show.
SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
// Hide the nav bar and status bar
// | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
);
Run Code Online (Sandbox Code Playgroud)

它隐藏状态栏的内容,但不隐藏自身的状态栏:(

请帮忙

android fullscreen samsung-mobile android-fullscreen samsung-galaxy

2
推荐指数
1
解决办法
2722
查看次数