I have a simple navigation drawer layout setup. I'm using the design support library so I have one a navigation view that slides in above the support library's toolbar. However, the header layout is responding to taps in the UI. I'm getting that ripple effect appearing behind the header layout when I tap it. How can I do either of the following:
I can't seem to find any documentation on this.
I noticed the same issue. This component uses a ListView internally (called menuView below), and unfortunately there is no option to disable the header selection because it's hard-coded:
this.mHeader = (LinearLayout)this.mLayoutInflater.inflate(layout.design_navigation_item_header, this.mMenuView, false);
this.mMenuView.addHeaderView(this.mHeader);
this.mMenuView.setAdapter(this.mAdapter);
this.mMenuView.setOnItemClickListener(this);
Adding that to the fact that the NavigationView also has an icons coloring bug (in version 22.2.0), I would suggest to not use it for the moment.