Start a Project

How to create custom navigation view with Recycler View.

Android provide us NavigationView according to the material specification provided by Google. However to get the full control over a drawer. We can create our custom implementation in the navigation view.

 

NavigationView is a subclass of FrameLayout, which can have multiple children. That means you can add a custom view to your NavigationView

Here is a sample of custom navigation view created using Recycler View

 

Note: Make sure you have removed app:menu from the NavigationView.

Now you can use adapter to load view inside RecyclerView or our custom NavigationView.

 

That’s all folks. Stay updated !!

 

Exit mobile version