11

Ich versuche, aus Activity Transitions und wenn ich Code unten in meine Werte-21 Einfügen/styles.xml ich Fehler:Aktivität Transition Fehler kann nicht Symbol '@ Übergang/Explodieren' lösen

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> 

Antwort

22

Haben Sie eine res/transition/explode.xml Datei mit folgendem Inhalt erstellt?

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

Sie können auch verwenden "@android: Übergang/Explodieren" –

20

einfachste Antwort - Ersetzen Sie es mit @android: Übergang/Explodieren

Verwandte Themen