android代码设置全屏

//设置无标题  

requestWindowFeature(Window.FEATURE_NO_TITLE);  

 //设置全屏  

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,   

WindowManager.LayoutParams.FLAG_FULLSCREEN); 

你可能感兴趣的:(android代码设置全屏)