删除默认的Android操作栏 [英] Remove android default action bar
问题描述
可能重复:
<一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.
这篇关于删除默认的Android操作栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!