Search code examples
androidandroid-actionbar

How to disable action bar permanently


I can hide the action bar in honeycomb using this code:

getActionBar().hide();

But when the keyboard opens, and user copy-pastes anything, the action bar shows again. How can I disable the action bar permanently?


Solution

  • By setting activity theme in Manifest,

    <activity
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
    ....
    >