Android 状态栏隐藏 ( 全屏 )

// 隐藏标题
requestWindowFeature(Window. FEATURE_NO_TITLE );
// 定义全屏参数
int int int int flag=WindowManager.LayoutParams. FLAG_FULLSCREEN ;
// 获得窗口对象
Window myWindow= this this this this .getWindow();
// 设置 Flag 标识
myWindow.setFlags(flag,flag);

原文地址:https://www.cnblogs.com/xiao-xu/p/3243702.html