Android styles.xml windowNoTitle (ActionBarActivity) -
i want hide title bar (where activity tile shown) in application. i'm doing setting android:windownotitle
item true
. works fine devices api level 19. tested device running api level 10 , hides notification bar. tile bar still shown.
here res/values/styles.xml
<resources> <style name="appbasetheme" parent="theme.appcompat.light"> <item name="android:windownotitle">true</item> <item name="android:windowfullscreen">true</item> </style> </resources>
edit: i'm using appbasetheme
theme in manifest. there no other styles.xml files in other value-vxx folder.
edit#2: i'm extending actionbaractivity
activity.
i use 1 theme devices , works on api level 8 16 (since have 5 physical devices). i'm sure it's working on 17-19 devices too.
make sure in manifest file (in application section), there line android:theme="@style/apptheme"
try using theme:
<style name="appbasetheme" parent="android:style/theme.notitlebar.fullscreen" > <item name="android:windownotitle">true</item> ... </style>
and remove styles/themes in values-xy
folders
[edit]
since appcompat theme not full screen, definition, statusbar go away, not titlebar
if don't need actionbar offered appcompat, should rid of appcompat possible: don't bloat apps unneeded
, unwanted
things
for instance, have header bar , footer bar, these relativelayouts implemented own.
, still have freedom of using whole screen surface.
Comments
Post a Comment