由网友( 岛城少年﹌)分享简介:可能重复: How隐藏一个活动的XML与标题栏现有的自定义主题 我删除的操作栏requestWindowFeature(Window.FEATURE_NO_TITLE);然而,应用程序启动时,操作栏会出现在一个很短的时间之前执行了上述说法。我怎样才能让它完全消失?谢谢i remove the action...
可能重复: 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.
相关推荐
最新文章