In older versions of Android, you had to use: android:theme="@android:style/Theme.NoTitleBar.Fullscreen" in the manifest so that the title bar would disappear.
In newer versions of ADT, I noticed the SystemUiHider class, which allows you to make hide() calls to remove not only the title bar, but also the action bar and navigation bar.
I am trying to write a full-screen application that I would like to leave in full-screen mode (for kiosk implementation) if a small hidden button is not pressed.
I tried using the standard FullscreenActivity (created from the new project wizard for Android) and preventing the user interface from reappearing in several ways:
- Making
mSystemUiHider.hide() calls in setOnVisibilityChangeListener (to hide the interface immediately when it detects a change in visibility) - Setting:
AUTO_HIDE_DELAY_MILLIS = 0 (to hide it immediately if it is visible) - Call Prevention
mSystemUiHider.show(); in the onClick method onClick (so that it doesn't show) - I also saw an example of
setSystemUiVisibility in the docs for android.view (again, to try to hide it immediately if visible or visible).
None of them work (by default, Android is set to low profile for the navigation bar when one of them is checked.
I understand that they probably do not want the developers to do what I'm trying to do, but I was hoping that I could extend SystemUiHider (and / or SystemUiHiderBase ) and override show() methods not to show if the true flag is not accepted. I can't seem to find any documentation on any of these classes (perhaps because they are utility classes?).
android fullscreen android-fullscreen uinavigationbar
Jono
source share