Activity 全屏显示

        //Remove title bar
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);

        //Remove notification bar

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


放在onCreate()方法中在setContentView()方法之前

你可能感兴趣的:(Activity,全屏显示)