Skip to content

Instantly share code, notes, and snippets.

@mustafasevgi
Created January 28, 2015 08:04
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save mustafasevgi/f49d0c954de61675a67f to your computer and use it in GitHub Desktop.
Save mustafasevgi/f49d0c954de61675a67f to your computer and use it in GitHub Desktop.
Android appcompat full screen and hide status bar
<resources>
<style name="AppTheme" parent="@style/Theme.AppCompat.Light">
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
</resources>
@swsachini
Copy link

"android:windowNoTitle" doesn't support AppCompat Theme. Use below instead

<style name="AppTheme" parent="@style/Theme.AppCompat.Light">
     <item name="windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowContentOverlay">@null</item>
</style>

@obieM
Copy link

obieM commented Aug 30, 2016

Thanks, you made my day

@carolinahansen
Copy link

Thank you for your information, swsachini!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment