安卓26:Android studio页面全屏显示

使用此行代码即可设置页面全屏显示:

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
//页面全屏显示

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_43374694/article/details/113685056