Reputation: 141
I am using ABS for my application. But I do not want my start screen (the first activity) to have action bar. How should I modify the theme to achieve this?
Many thanks in advance.
Upvotes: 1
Views: 1840
Reputation: 3193
add following code in your activity :
ActionBar ab = getActionBar();
ab.setDisplayShowTitleEnabled(false);
ab.setDisplayShowHomeEnabled(false);
ab.hide();
Upvotes: 0
Reputation: 5271
You could set your activity's theme attribute in AndroidManifest.xml file to one of the following based on your requirement:
Upvotes: 5
Reputation: 157447
call hide()
on your ActionBar object, inside the onCreate()
of your FirstActivity
if you are using Sherlock
getSupportActionBar().hide();
Upvotes: 2