android - transparent activity's full screen on 2.3 -
i using xml style:
<style name="theme.transparent" parent="@android:style/theme.translucent.notitlebar">
this showing tansparent layout full screen, no title bar or status bar on top in android 2.1 , 2.2. however, when tested application on 2.3, same activity showing home screen status bar on top (battery etc).
i had enter these lines java code oncreate:
requestwindowfeature(window.feature_no_title); getwindow().setflags(windowmanager.layoutparams.flag_fullscreen, windowmanager.layoutparams.flag_fullscreen);
to remove status or title bar top.
can shed light why difference between 2.2 , 2.3?
you can set theme to:
<style name="theme.transparent" parent="@android:style/theme.translucent.notitlebar.fullscreen">"
and should hide both title bar , fullscreen in every version.
Comments
Post a Comment