Andorid全屏设置

 protected void onCreate(Bundle savedInstanceState) {
     
      super.onCreate(savedInstanceState);
         //隐去标题栏(应用程序的名字) 
         this.requestWindowFeature(Window.FEATURE_NO_TITLE);
         //隐去状态栏部分(电池等图标和一切修饰部分)
         this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                 WindowManager.LayoutParams.FLAG_FULLSCREEN);
     }

猜你喜欢

转载自yaolunwei.iteye.com/blog/1968789
今日推荐