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.
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 ?
Thanks.
In your Manifest