android标题栏去除和全屏

去掉标题栏:

this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏


全屏:

this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏
getWindow().setFlags(WindowManager.LayoutParams.FILL_PARENT, WindowManager.LayoutParams.FILL_PARENT);  //设置全屏  

你可能感兴趣的:(Android)