AppGeek
AppGeek

Reputation: 137

Action bar removal for API Level 8

Hi how do i remove the action bar. I tried the following code:

ActionBar actionBar=getActionBar();
actionBar.hide();

But it says that it is only possible for API Level 11. I am trying to develop for API LEVEL 8.

Upvotes: 0

Views: 242

Answers (1)

sockeqwe
sockeqwe

Reputation: 15919

getSupportActionBar() instead of getActionBar()

or via Theme: Theme.AppCompat.Light.NoActionBar

Upvotes: 2

Related Questions