Skip to content

Instantly share code, notes, and snippets.

@mstoic
Created September 10, 2018 08:18
Show Gist options
  • Save mstoic/54de2e01fbd4fb9fc41621d5ce699129 to your computer and use it in GitHub Desktop.
Save mstoic/54de2e01fbd4fb9fc41621d5ce699129 to your computer and use it in GitHub Desktop.
Completely disable all opening application for an activity.
// Source: https://stackoverflow.com/a/11079475
// Add below code to styles.xml
<style name="noAnimTheme" parent="AppTheme.NoActionBar">
<item name="android:windowAnimationStyle">@null</item>
</style>
// Set below theme for Activity in Manifest
android:theme="@style/noAnimTheme"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment