Activity Transition error, cannot resolve symbol '@transition/explode'

T_C picture T_C · Jan 28, 2015 · Viewed 8.6k times · Source

I am trying out Activity Transitions and when I paste below code in my values-21/styles.xml I get error:

cannot resolve symbol '@transition/explode'

<style name="BaseAppTheme" parent="android:Theme.Material">
  <!-- enable window content transitions -->
  <item name="android:windowContentTransitions">true</item>

  <!-- specify enter and exit transitions -->
  <item name="android:windowEnterTransition">@transition/explode</item>
  <item name="android:windowExitTransition">@transition/explode</item>

  <!-- specify shared element transitions -->
  <item name="android:windowSharedElementEnterTransition">
    @transition/change_image_transform</item>
  <item name="android:windowSharedElementExitTransition">
    @transition/change_image_transform</item>
</style>

Answer

Amit Patel picture Amit Patel · Sep 6, 2015

Simplest Answer - Replace it with @android:transition/explode