Created
July 4, 2021 07:45
-
-
Save PhongHuynh93/f4306a409304c6862cf9de77fa00311d to your computer and use it in GitHub Desktop.
MaterialContainerTransform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onTransitionEnd(@NonNull Transition transition) { | |
removeListener(this); | |
if (holdAtEndEnabled) { | |
// Keep drawable showing and views hidden (useful for Activity return transitions) | |
return; | |
} | |
// Show the actual views at the end of the transition | |
startView.setAlpha(1); | |
endView.setAlpha(1); | |
// Remove the transition drawable from the root ViewOverlay | |
ViewUtils.getOverlay(drawingView).remove(transitionDrawable); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment