英文:
Material transition in java does not work
问题
Android Studio为什么显示这个错误?我查看了文档和其他问题,这里没有问题,无法在setSharedElementEnterTransition
中实现MaterialContainerTransform
。以下是错误的截图:问题截图。
英文:
android studio show me this error why? i saw documentation and other issues here and they no have problem whit implementing MaterialContainerTransform in setSharedElementEnterTransition...
here are an image of the error: issue transition
答案1
得分: 0
根据Google提供的文档,你需要在Activity中为共享元素进行导入:
import com.google.android.material.transition.platform.MaterialContainerTransform
参考链接:https://material.io/develop/android/theming/motion/
英文:
As document from google stated that you need to import for shared element between Activity
import com.google.android.material.transition.platform.MaterialContainerTransform
Reference: https://material.io/develop/android/theming/motion/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论