Check Mobile App
Read now
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 !!


. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


  • Eugene Kartoyev
    Dear Shubham, you should not put RecyclerView inside a (nested) scrollview, as it kills the *recycler* property of a RecyclerView.

    RecyclerView holds in memory only the visible elements. By putting it in a NestedScrollView, you make it inflate all its elements from top to bottom and the off-screen elements are no longer “recycled”, and this way the RecyclerView no longer serves its purpose.

    You might as well use a ListView or CoordinatorLayout instead.

  • Olvin Lizama
    But then how do you handle the clicked items?
  • css.php

    When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.

    Michael Urresta

    Michael Urresta

    Talk to Sales


    Live Chat
    Start a Project

      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home