MotionLayout header expanded on first swipeUp

178 Views Asked by At

In my case I have a motionLayout containing a header and a recyclerView as anchor, the header is supposed to collapse at the first down swipe, and expanded when the last possible swipe up happens (position 0 in the recycler view). The default behaviour is expanding the header when the first swipe up happens. Is there a flag or an attribute that allows me to alter this behaviour? Thanks!

1

There are 1 best solutions below

1
On

moveWhenScrollAtTop="true|false"