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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLets the SharedElementCallback adjust the mapping of shared element names to Views.voidonRejectSharedElements(List<View> rejectedSharedElements) Called afteronMapSharedElements(java.util.List, java.util.Map)when transferring shared elements in.voidonSharedElementEnd(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.voidonSharedElementStart(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