Skip to content

Instantly share code, notes, and snippets.

@shubham08gupta
Last active August 15, 2017 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shubham08gupta/1b0442b83fedf6191e69bfd984e61e07 to your computer and use it in GitHub Desktop.
Save shubham08gupta/1b0442b83fedf6191e69bfd984e61e07 to your computer and use it in GitHub Desktop.
Styles-v21 file for android animations
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="BaseTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme" parent="BaseTheme">
<!-- enable window content transitions -->
<item name="android:windowActivityTransitions">true</item>
<!-- specify enter and exit transitions -->
<item name="android:windowEnterTransition">@android:transition/explode
</item>
<item name="android:windowExitTransition">@android:transition/explode
</item>
<!-- specify shared element transitions -->
<item name="android:windowSharedElementEnterTransition">
@transition/change_image_transformation
</item>
<item name="android:windowSharedElementExitTransition">
@transition/change_image_transformation
</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment