| Start |
|---|
| How to add the NavigationView To use a NavigationView just add the dependency in the Then add the
Define your menu file as And finally the It will look like this: |
| Add underline in menu elements Each group ends with a line separator. If each item in your menu has its own group you will achieve the desired graphical output. It will work only if your different groups have different |
| Add seperators to menu Access the RecyclerView (opens new window) in the NavigationView (opens new window) and add ItemDecoration (opens new window) to it. Code for DividerItemDecoration Preview: |
| Add menu Divider using default DividerItemDecoration. Just use default DividerItemDecoration class : Preview : RemarksThe NavigationView represents a standard navigation menu for application. The menu contents can be populated by a menu resource file. Before using the Official Documentation:Material Design Specifications: |
Read Article
https://develop.horje.com/learn/1434/reference