Package icyllis.modernui.fragment
Class SharedElementCallback
java.lang.Object
icyllis.modernui.fragment.SharedElementCallback
Listener provided in
Fragment.setEnterSharedElementCallback(SharedElementCallback)
and
Fragment.setExitSharedElementCallback(SharedElementCallback)
to monitor the Fragment transitions. The events can be used to customize Fragment
Transition behavior.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Lets the SharedElementCallback adjust the mapping of shared element names to Views.void
onRejectSharedElements
(List<View> rejectedSharedElements) Called afteronMapSharedElements(java.util.List, java.util.Map)
when transferring shared elements in.void
onSharedElementEnd
(List<String> sharedElementNames, List<View> sharedElements, List<View> sharedElementSnapshots) In Activity Transitions, onSharedElementEnd is called immediately before capturing the end of the shared element state on enter and reenter transitions and immediately before capturing the start of the shared element state for exit and return transitions.void
onSharedElementStart
(List<String> sharedElementNames, List<View> sharedElements, List<View> sharedElementSnapshots) In Activity Transitions, onSharedElementStart is called immediately before capturing the start of the shared element state on enter and reenter transitions and immediately before capturing the end of the shared element state for exit and return transitions.
-
Constructor Details
-
SharedElementCallback
public SharedElementCallback()
-
-
Method Details