【发布时间】:2017-11-07 21:31:35
【问题描述】:
在我写的代码中:
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
this.setContentView(R.layout.activity_main);
在调用setContentView() 之前我已经写了所有内容,但它不起作用。
我已经在 android studio 中使用了主题来移除标题栏并将应用设置为全屏但没有任何改变。
在开发安卓应用时,如何移除或隐藏默认显示的标题栏?
【问题讨论】:
-
您可能希望在主要活动的 xml 文件中执行此操作。
-
你能检查我的答案吗?谢谢你。@Twing90
标签: android android-layout android-titlebar