Android全屏设置方法

1.去掉状态栏

requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);

2.去掉标题栏

getSupportActionBar().hide();

1在前2在后

你可能感兴趣的:(Android)