Skip to content

Instantly share code, notes, and snippets.

@CreatorB
Last active August 29, 2015 14:14
Show Gist options
  • Save CreatorB/99590fbe5ad4b3aa53dd to your computer and use it in GitHub Desktop.
Save CreatorB/99590fbe5ad4b3aa53dd to your computer and use it in GitHub Desktop.
AppCompact Set Fullscreen Theme No ActionBar No TitleBar
<!-- You can set this on your style.xml -->
<resources>
<style name="Theme.AppCompat.Light.NoActionBar.FullScreen" 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>
<!-- Another way you can put in your java class what you want to set fullscreen-->
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment