安卓隐藏标题栏和状态栏

 requestWindowFeature(Window.FEATURE_NO_TITLE);//无title  
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);//全屏  

加载oncreate里。setConteneView之前

你可能感兴趣的:(安卓)