本指南开始使用共享元素和动画实现打开的图像.
https://android-developers.googleblog.com/2018/02/continuous-shared-element-transitions.html
但抓住了一个例外:
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
at android.support.transition.TransitionSet.setDuration(TransitionSet.java:196)
at android.support.transition.TransitionSet.setDuration(TransitionSet.java:60)
at android.support.transition.Transition.
打电话时
TransitionInflater.from(context).inflateTransition(R.transition.my_transition)
最佳答案
原文链接:https://www.f2er.com/android/431215.html