Reputation: 6213
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:
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
Upvotes: 2
Views: 736
Reputation: 1431
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
Upvotes: 1
Reputation: 82563
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
Upvotes: 2
Reputation: 16174
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.
Upvotes: 0