I'm trying to hide the toolbar by making it invisible
while scrolling and visible
on stop,but it's not smooth .
Can anyone please suggest any better option for hiding toolbar elegantly while scrolling in relativeLayout
I'm trying to hide the toolbar by making it invisible
while scrolling and visible
on stop,but it's not smooth .
Can anyone please suggest any better option for hiding toolbar elegantly while scrolling in relativeLayout
Not sure this is what you want, but this can make the system UI smooth show/hide when scrolling. See Using Immersive Full-Screen Mode
You should use the Coordinator Layout as a parent in the xml file. Coordinator Layout is designed to support this type of actions and "synchronise" this actions.
The is a good tutorial here: https://mzgreen.github.io/2015/06/23/How-to-hideshow-Toolbar-when-list-is-scrolling(part3)/