Hide status bar in Android 2 but keep Action Bar in Android 3/4 -



Hide status bar in Android 2 but keep Action Bar in Android 3/4 -

i have been trying out various ways no success. doing total screen painting app kids. can't go total screen without next line in manifest.xml:

android:theme="@android:style/theme.notitlebar.fullscreen"

but statement causes lot of behaviour issues in android 3/4 phone/tablets. either action bar disappeared, or got total screen without access menu.

removing line , next code:

requestwindowfeature(window.feature_no_title); getwindow().setflags(windowmanager.layoutparams.flag_fullscreen, windowmanager.layoutparams.flag_fullscreen);

works android 3/4 phones, have status bar on android 2!

how can remove status bar on android 2 still back upwards android 3/4? thanks!

you can using values-v11 folder.

in manifest:

android:theme="@style/mytheme"

values/styles.xml:

<style name="mytheme" parent="android:theme.notitlebar.fullscreen"> </style>

values-v11/styles.xml:

<style name="mytheme" parent="android:theme.holo"> </style>

android hide android-actionbar statusbar android-theme

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

How do you set up a perforce server to work over the internet? -

ios - Lagging ScrollView with UIWebview inside -