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?
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?
By setting activity theme in Manifest,
Make sure you create a new theme by changing the name of the default theme in the
styles.xml
file to:and than change the theme from the drop-down under your
main_activity.xml
to whatever you called your theme.I use the following code inside my onCreate function:
Source: https://developer.android.com/guide/topics/ui/actionbar.html
Type this code to your
onCreate
method beforesetContentView
:Under res -> values ->strings.xml
Change
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
To
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">