2

Creating a hardware device that will be running a custom version of Android (4.x). There will be additional functionality incorporated but we would like to use as much of existing Android as we can.

The device will only run one specific app at the start, then plan is to create our own custom system bar / action bar with fragments at the bottom of the screen. However, we ideally want the notification bar to stay at the top of the screen with all of its drop down goodness.

I am aware there are currently two mechanisms that address this:

  • Temporary absolute full screen hides the system bar until the screen is touched.
  • Dimming of the system bar where the system bar icons fade to black but still occupy the same space and come back when pressed.

Any help would be much appreciated,

Cheers

EDIT: I know it can be done by changing the source code, that is not possible in the timeframe though unfortunately

mgibson
  • 6,103
  • 4
  • 34
  • 49
  • 1
    If its a full on custom project, why not replace the navigation bar with your own at a source code level? – Raghav Sood Apr 24 '13 at 20:21
  • Haven't got the time, time is critical and it's not essential, more of a nice to have if it is readily achievable somehow. – mgibson Apr 24 '13 at 20:52

3 Answers3

2

I know you can get rid of both the system bar and the notification bar by setting the app to full screen and if we could have that plus the notification bar that would be great.

You can't actually. You have a SYSTEM_UI_FLAG_HIDE_NAVIGATION that hides it, but the bar reappears whenever there is any interaction on the screen (the notification bar also reappears with this).

Seeing as you are looking to replace the system bar completely, you will have to do this at a source code level. You are only allowed to hide it during periods of interactive inactivity using the SDK

Raghav Sood
  • 81,899
  • 22
  • 187
  • 195
1

You have to create your own version of SystemUI application, and build Android with that version in place of default: https://github.com/android/platform_frameworks_base/tree/master/packages/SystemUI

Dan Osipov
  • 1,429
  • 12
  • 15
0

If I understand correctly, you can just add this in your manifest xml:

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

This will keep the notification bar without going all-out full screen.

Neoh
  • 15,906
  • 14
  • 66
  • 78