I am using CollapsingToolBarLayout
alongside with AppBarLayout
and CoordinatorLayout
, and they are working Fine altogether. I set my Toolbar
to be fixed when I scroll up, I want to know if there is a way to change the title text of the Toolbar, when CollapsingToolBarLayout
it is collapsed.
Wrapping up, I want two different titles when scrolled and when expanded.
Thank you all in advance
My Toolbar offset value get -582 when collapse, on expand=0 So I find value by setting offsetvalue in Toast & change code accordingly.
This code is working perfect for me. You can use percentage scale How you like
This code worked for me
You can get collapsingToolBar alpha percentage using below :
For Reference : link