SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
04/15/15 02:02 AM (9 years ago)

How to hide the (Android) menu bar? Help request....

I may have the names wrong, now that we're into Android v3+ I'm talking about the grey menu/tool bar located at the bottom of these screens: https://dl.dropboxusercontent.com/u/115208762/dev1.png https://dl.dropboxusercontent.com/u/115208762/dev2.png I want to 'hide' it when I go to a content screen. I want to 'show' it when I go to a menu screen. No problem messing with the code, if I knew 'what' code I needed. Any help is greatly appreciated. Cheers! -- Smug
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
04/15/15 02:34 AM (9 years ago)
Hey Smug, I think the bottom bar is pretty outdated, so I always put it in the top bar, so that the bottom bar never appears. Controls like the options menu in your images appear perfectly in the top bar then. Code for this: change in your manifest file: from: <!-- BT_activity_host runs after startup and after splash screen (splash screens are not required --> <activity android:name=".BT_activity_host" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/hostThemeWithTitle" android:uiOptions="splitActionBarWhenNarrow"></activity> to: <!-- BT_activity_host runs after startup and after splash screen (splash screens are not required --> <activity android:name=".BT_activity_host" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/hostThemeWithTitle" ></activity> Hope this helps.
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
04/15/15 02:35 AM (9 years ago)
and it is called "actionbar" :-)
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
04/15/15 03:39 AM (9 years ago)
And speaking of actionbars... here is a life saving link: http://jgilfelt.github.io/android-actionbarstylegenerator/ The only way to get to grips with the action bar!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/15/15 04:28 AM (9 years ago)
Leon, that is *perfect*, thank you! Dusko: I'm not sure if I know how to use it, but I'll certainly give it a shot! Cheers! -- Smug
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
04/15/15 04:34 AM (9 years ago)
glad I could help you, normally other way around ;-)
 
krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
like
07/20/15 06:55 AM (8 years ago)
Great tip Leon - thanks. It gives an extra 10% (approx) of screen real estate to use.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.