shared-element-transition
Fragment shared element transition with add() instead of replace()?
Try this getSupportFragmentManager().beginTransaction() .addSharedElement(myImage, “mytransition”) .add(R.id.recycler_view_container, myFragment2) .hide(myFragment1) commit(); worked for me
FEATURE_ACTIVITY_TRANSITIONS vs. FEATURE_CONTENT_TRANSITIONS
I’m glad I have an opportunity to answer these questions as the documentation is less than clear. Early-on, there was one flag FEATURE_CONTENT_TRANSITIONS that handled both of the features. We split them when Material applications got unexpected behavior when it was enabled. So some older documentation may still say that you have to enable FEATURE_CONTENT_TRANSITIONS … Read more
Crash in Activity Transitions with SharedElement
Try to get fragment from FragmentManager: fragmentManager.findFragmentByTag(“android:switcher:” + R.id.viewPager + “:” + position) If fragment is null, try creating a new fragment.
Blinking screen on image transition between activities
On the exiting activity, call getWindow().setExitTransition(null); On the entering activity, call getWindow().setEnterTransition(null); It will prevent the fade out of the exiting activity and the fade in of the entering activity, which removes the apparent blinking effect.
How do I prevent the status bar and navigation bar from animating during an activity scene animation transition?
There are two approaches you can use that I know of to prevent the navigation/status bar from animating during the transition: Approach #1: Exclude the status bar and navigation bar from the window’s default exit/enter fade transition The reason why the navigation/status bar are fading in and out during the transition is because by default … Read more