I'm trying to set an offset listenter to CollapsingToolbarLayout to animate other objects in a synchronized way while user scrolls down or up. Does anybody have an idea?
Assuming your toolbar is a direct child of AppBarLayout, you can add an AppBarLayout.OnOffsetChangedListener on the AppBarLayout.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With