gpt4 book ai didi

android - Activity 转换错误,无法解析符号 '@transition/explode'

转载 作者:IT老高 更新时间:2023-10-28 23:16:56 27 4
gpt4 key购买 nike

我正在试用 Activity Transitions当我将以下代码粘贴到我的 values-21/styles.xml 中时,出现错误:

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>

最佳答案

最简单的答案 - 将其替换为 @android:transition/explode

关于android - Activity 转换错误,无法解析符号 '@transition/explode',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28182989/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com