我正在与Eclipse的Android 3.2。和虚拟机上运行的Android x86的。 (V3.2)
I'm working with eclipse, android 3.2. and a virtual machine running android x86. (v3.2)
我用的是河洛主题,我想删除的操作栏标题和图标。所以我做
I use the Holo theme and I want to remove the action bar title and icon. So I do
@Override
public void onCreate(Bundle savedInstanceState)
{
ActionBar actionBar = getActionBar();
actionBar.setDisplayShowTitleEnabled(false);
actionBar.setDisplayShowHomeEnabled(false);
super.onCreate(savedInstanceState);
setContentView(R.layout.test);
}
它工作正常,但...
It's working fine but ...
在应用程序启动,我首先表明我看到他们消失的标题和图标,只有经过。所以它不是很漂亮。
When the application start, I first show the title and icon and only after I see them disappearing. So it's not very beautiful.
如果我使用调试,我可以看到只有当我离开的onCreate的setDisplayShowTitleEnabled生效。
If I use debug, I can see It's only when I leave the onCreate that the setDisplayShowTitleEnabled takes effect.
那么,有没有办法隐藏标题和图标的活动表示过吗?
So is there a way to hide title and icon before the activity is shown ?
感谢。
在你的清单
<activity android:name=".ActivityHere"
android:label="">