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

2

25

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>
Normalize answered 28/1, 2015 at 1:7 Comment(1)
agree, their guide is confusingPropitious
E
36

Did you create a res/transition/explode.xml file with the following contents?

<transitionSet xmlns:android="http://schemas.android.com/apk/res/android">
    <explode />
</transitionSet>
Equidistant answered 28/1, 2015 at 3:12 Comment(2)
You can also use "@android: transition/explode"Ethical
it's @android:transition/explode should not use space after androidCinderellacindi
B
42

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

Brookite answered 6/9, 2015 at 19:58 Comment(0)
E
36

Did you create a res/transition/explode.xml file with the following contents?

<transitionSet xmlns:android="http://schemas.android.com/apk/res/android">
    <explode />
</transitionSet>
Equidistant answered 28/1, 2015 at 3:12 Comment(2)
You can also use "@android: transition/explode"Ethical
it's @android:transition/explode should not use space after androidCinderellacindi

© 2022 - 2024 — McMap. All rights reserved.