Skip to content Skip to sidebar Skip to footer

Android: How To Change Views In Collapsing Toolbar When Scrolling

I am using collapsing toolbar. Is it somehow possible to achieve behavior, that will change multiple views in collapsing toolbar according to scrolling? For example I have three Re

Solution 1:

Try use CollapsingToolbarLayout in the AppBarLayout.

Put big views to the CoollapingToolbarLayout. And Small views in the Toolbar.

You can try play with flag: app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"

If you want create rely cool animation for text in the text view. You must implement all behavior in Java code.

Post a Comment for "Android: How To Change Views In Collapsing Toolbar When Scrolling"