I developed an app that plays a video on fullscreen mode, it works fine on mobile phones but when I tested it on a Samsung Galaxy Tab 10.1 running on Honeycomb 3.1 it seems the taskbar still stays on the bottom.
I tried running some apps like angry birds but still it can't run on fullscreen mode, the taskbar stays on the bottom still. Running the youtube app just makes taskbar into black and the screen mode stays the same.
Is this a limitation on a Samsung Galaxy Tab 10.1? or this a st开发者_如何学Goandard on all HoneyComb?
Thanks Android Gurus =)
The bottom bar can never go away on Honeycomb, because since tablets do not have hardware home or back buttons, the only way for the user to exit your app is to use the bottom status bar. If it were hideable, they would be stuck in your app, and that wouldn't be a good user experience.
AmandeepGrewal is correct, but you should also be able to "dim" the bar with: setSystemUiVisibility(int).
You can see if this is of any help:
ActionBar actionBar = activity.getActionBar();
if (actionBar != null) {
//mContentView.setSystemUiVisibility(visibility);
if (visibility == View.STATUS_BAR_VISIBLE) {
actionBar.show();
} else {
actionBar.hide();
}
}
Well, apparently, it is possible for the taskbar to be hidden completely on Honeycomb 3.2 because I have a Samsung Galaxy Tab Plus 7.0, and when the Kindle app runs, the taskbar completely disappears. If one taps the screen anywhere in the Kindle app, the taskbar pops back up.
Presumably, any app could be written or modified to allow this capability.
精彩评论