Shared Element Transitions
suggest changeVersions
This topic was documented against Android 5.0 through 7.1.
Introduction
Here are examples of a transition between activities or fragments that uses a shared element. An example of this behaviour is the Google Play Store app, which moves an app's icon from the list to the app's details view.
Syntax
- transaction.addSharedElement(sharedElementView, "targetTransitionName");
- fragment.setSharedElementEnterTransition(new CustomTransaction());
CustomTransaction stands in for a Transition such as the DetailsTransition on the fragment page.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents