Show system bar(title bar) in AppCompat Theme Android -


i using appcompat them support v7. trying make 1 screen full screen notification bar visible(solid color or transparent). in styles.xml have this:

 <style name="theme.myapptheme" parent="@style/theme.appcompat">         <item name="android:windowactionbaroverlay">false</item>         <item name="android:windowfullscreen">false</item>         <item name="android:windownotitle">false</item>     </style> 

and in class, in oncreate() have this:

super.oncreate(bundle);  getwindow().addflags(         windowmanager.layoutparams.flag_force_not_fullscreen); getwindow().clearflags(windowmanager.layoutparams.flag_fullscreen); 

still, curious enough, nativation bar still not appear on it's own. there property should using in styles make correct? thank you.

style.xml

<resources>     <style name="appbasetheme" parent="theme.appcompat.light"> </style>     <style name="apptheme" parent="appbasetheme"> </style> </resources> 

in manifest.xml

 <activity       android:name="youractivity"      android:theme="@android:style/theme.light.notitlebar">  </activity> 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -