this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.hello);
或
AndroidManifest.xml 配置
android:theme="@android:style/Theme.NoTitleBar"
为什么这样取消第一个页面的标题,程序会意外停止,整了一天还没解决,急急急!!!
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);上面是 this.requestWindowFeature(Window.FEATURE_NO_TITLE);刚才写漏了
方法一:将extends ActionBarActivity 改为 extends Activity 方法二:调用getSupportActionBar().hide(); 原因:使用了appcompat_v7包下的ActionbarActivity
取消Android应用标题栏
本文介绍了在Android应用中移除标题栏的方法,包括通过代码设置全屏显示、禁用标题特征及隐藏ActionBar等技巧,并解释了使用appcompat_v7包下ActionbarActivity时可能遇到的问题。

240

被折叠的 条评论
为什么被折叠?



