11

을 기호를 해결하고 내 값-21/styles.xml 코드 아래에 붙여 넣을 때 나는 오류 얻을 수 없습니다활동 전환 오류, 내가 <a href="https://developer.android.com/training/material/animations.html#Transitions">Activity Transitions</a>을 시도하고있다 '폭발/@ 전환을'

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> 

답변

22

을 다음 내용으로 res/transition/explode.xml 파일을 만들었습니까?

<transitionSet xmlns:android="http://schemas.android.com/apk/res/android"> 
    <explode /> 
</transitionSet> 
+23

또한 사용할 수 있습니다 "@android : 전환/폭발" –

20

간단한 대답 - @android로 교체 : 폭발/전환