Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

jemshit commented Mar 26, 2017

and

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

This comment has been minimized.

Copy link

hyunilko commented Jun 21, 2017

Thanks.

@szymanskip

This comment has been minimized.

Copy link

szymanskip commented Dec 11, 2017

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
You can’t perform that action at this time.