Setting the offset receiver in CollapsingToolbarLayout

I am trying to set the listenter offset to CollapsingToolbarLayout to animate other objects in a synchronized way while the user scrolls up or down. Does anyone have an idea?

+5
source share
1 answer

Assuming your toolbar is a direct child of AppBarLayout, you can add AppBarLayout.OnOffsetChangedListener to AppBarLayout.

+1
source

All Articles