NavigationView get/find header layout

Version 23.1.0 switches NavigationView to using a RecyclerView (rather than the previous ListView) and the header is added as one of those elements. This means it is not instantly available to call findViewById() – a layout pass is needed before it is attached to the NavigationView. For version 23.1.1 of the Support Library, you can … Read more