问题
I think we all know this behavior of Google Chrome on Android where you scroll down and the menu bar disappears.
This is no problem with "OnSwipe" in a motion scene file.
The problems I have are regarding the reversed behavior where you can scroll up somewhere in the middle of a page and while doing that the menu bar appears again.
I tried this with a NestedScrollView in a MotionLayout and for me it seams like I can only drive the MotionLayout's animation when the NestedScrollView isn't scrolling. When I reached the top of the scrollview my fake menu bar appeared again.
Is there any way to drive the animation while scrolling? Or do you have an example how this Chrome's behaubir can be achieved with MotionLayout?
All the best, Chris
来源:https://stackoverflow.com/questions/61105979/how-to-drive-motionlayout-animation-while-scrolling-like-google-chrome