You can use a stateListAnimator to achieve the toolbar elevating on scroll effect. Here is an awesome article on medium for this exact problem “StateListAnimator — a Powerful Little Tool for Elevation Animation” by Juhani Lehtimäki https://link.medium.com/2MV0fbQPgS
It's the liftOnScroll effect, go to material.io you'll find the instructions there
Обсуждают сегодня