YouTube navigate back from video fragment to home fragment

I want to achieve behavior similar to YouTube navigating behavior when you click on video item, video fragment will open and if you slide down go back to home fragment, I make the animations with MotionLayout but navigating back with animation I don’t know how to impalement that, I would appreciate any help or suggestion.

F1 is home fragment

enter image description here

Source: Android Questions

LEAVE A COMMENT