因此,在进一步挖掘之后,我了解到非共享视图被称为
transitioning views
如此处所述
AndroidDesignPatterns.com
内容转换决定了活动的非共享视图(也称为转换视图)如何进入或退出活动场景。
article
来自同一网站
setExitTransition() - Aâs exit transition animates transitioning views out of the scene when A starts B.
setEnterTransition() - Bâs enter transition animates transitioning views into the scene when A starts B.
setReturnTransition() - Bâs return transition animates transitioning views out of the scene when B returns to A.
setReenterTransition() - Aâs reenter transition animates transitioning views into the scene when B returns to A.
所以这句简单的话解决了我的问题。
setExitTransition(TransitionInflater.from(getActivity()).inflateTransition(android.R.transition.fade));