I want to scroll only the menu items of the navigation view but it also scroll the header with it. Please any body tell me how to achieve this... Here is my code:
You should be able to place your header outside of the NavigationView
, like so:
Note: I've added a FrameLayout
to encapsulate everything in a single view for the DrawerLayout
, adjusted the NavigationView's height to automatically use the available space below your header, and have removed the headerLayout
attribute.