删除默认的Andr​​oid操作栏 [英] Remove android default action bar

查看:125
本文介绍了删除默认的Andr​​oid操作栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  <一href="http://stackoverflow.com/questions/2591036/how-to-hide-the-title-bar-for-an-activity-in-xml-with-existing-custom-theme">How隐藏一个活动的XML与标题栏现有的自定义主题

我删除的操作栏         requestWindowFeature(Window.FEATURE_NO_TITLE); 然而,应用程序启动时,操作栏会出现在一个很短的时间之前执行了上述说法。 我怎样才能让它完全消失? 谢谢

i remove the action bar by requestWindowFeature(Window.FEATURE_NO_TITLE); however, when the app starts, the action bar appears in a very short time before it executes the above statement. how can I make it totally disappear? thank

推荐答案

我已经注意到,如果你设置的主题,在AndroidManifest,似乎摆脱了很短的时间,你可以看到操作栏。因此,尝试添加到您的清单:

I've noticed that if you set the theme in the AndroidManifest, it seems to get rid of that short time where you can see the action bar. So, try adding this to your manifest:

<android:theme="@android:style/Theme.NoTitleBar">

只需将其添加到您的应用程序标签来应用它的应用范围。

Just add it to your application tag to apply it app-wide.

这篇关于删除默认的Andr​​oid操作栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆