Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide the status bar

Please give me solution to hide the status bar of translucant screen, i have tries by setting Theme.NoTitleBar.Fullscreen but it works for normal activity, but its not working for the screen witch is translucant.Please give me the hint to solve the problem.

Thanks

like image 883
Navya Avatar asked Aug 17 '10 09:08

Navya


2 Answers

That's how I usually do this by overriding one of standard themes.

<style name="ExampleTheme" parent="android:Theme.Light">
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowFullscreen">true</item>
</style>

You then can apply the theme to your activity. I hope that helps.

like image 165
Konstantin Burov Avatar answered Sep 22 '22 21:09

Konstantin Burov


Above solution is not work for me. I used "@android:style/Theme.Holo.NoActionBar.Fullscreen" as parent theme.

<style name="ExampleTheme" parent="@android:style/Theme.Holo.NoActionBar.Fullscreen">
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowFullscreen">true</item>
</style>

https://developer.android.com/training/system-ui/status

like image 36
Maulik Parmar Avatar answered Sep 22 '22 21:09

Maulik Parmar