

we have customized navigation header as shown below Nav_header_main − It is a navigation header view, it contains information about navigation header. it is mainlayout where user can customize own views as shown below In the above layout we have included content_main layout.

But it contains information about app bar layout( action bar), center layout. Header layout contains information about header of navigationview and menu layout is contains information about menu list.Īpp_bar_main.xml − It is layout file as we see normal layout. In the navigationview it contains two layouts as Header Layout and menu layout. It going to create drawer layout as a parent layout and child layout contains navigationview as shown below Android studio generates different layout as shown belowĪctivity_main.xml − It is a MainActivity layout. Step3 − Open your project structure for layout folder. Step2 − While creating project we should select Navigation drawer activity as shown belowĪfter selecting navigation drawer activity click on next button to finish project creation. Step 1 − Create a new project in Android Studio,go to File ⇒ New Project and fill all required details to create a new project. This example demonstrate about how to integrate NavigationView in ActionBar Most of use cases of Navigation view is used to redirect different activities or show profile information. Navigation view is extended by navigatoin drawer. Navigation view is just like a sliding menu in HTML. Before getting into the Navigation view example, we should know about navigation view.
