Hiding on scroll: We wanted to provide as much content as possible on our user’s screens. Consequently, we decided to make the navigation hide on scroll, thus making more room for the content area. Scrolling up makes the navigation fade back in. You only need to change the root view to CoordinatorLayout, And add one line code "app:layout_behavior" like the bottom into ANY view, Then your view hiding on scroll. Your titleBar can be Toolbar,LinearLayout and so on. Your NavigationView can be BottomNavigationView or TabLayout, or Any View you put in xml.