Skip to content

Instantly share code, notes, and snippets.

@antonshkurenko
Created October 30, 2015 09:47
Show Gist options
  • Save antonshkurenko/8973ac1463e57e93f427 to your computer and use it in GitHub Desktop.
Save antonshkurenko/8973ac1463e57e93f427 to your computer and use it in GitHub Desktop.
No ui activity theme for the AppCompat
<!-- No ui for appcompat -->
<style name="NoUiAppTheme"
parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowBackground">@null</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@null</item>
<item name="android:windowDisablePreview">true</item>
<item name="android:windowNoDisplay">true</item>
</style>
@jemshit
Copy link

jemshit commented Mar 26, 2017

and

@Override protected void onStart() {
        super.onStart();
        setVisible(true);
}

@hyunilko
Copy link

Thanks.

@szymanskip
Copy link

Be careful because this solution crashes on Android 6.0 and above: https://commonsware.com/blog/2015/11/02/psa-android-6p0-theme.nodisplay-regression.html

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