android开发,隐藏标题栏
只写
requestWindowFeature(Window.FEATURE_NO_TITLE);不能隐藏。
需要写成:
getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN);
requestWindowFeature(Window.FEATURE_NO_TITLE);
android开发,隐藏标题栏
只写
requestWindowFeature(Window.FEATURE_NO_TITLE);不能隐藏。
需要写成:
getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN);
requestWindowFeature(Window.FEATURE_NO_TITLE);