Last active
August 29, 2015 14:14
-
-
Save CreatorB/99590fbe5ad4b3aa53dd to your computer and use it in GitHub Desktop.
AppCompact Set Fullscreen Theme No ActionBar No TitleBar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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