How to add Headings in drawer layout. For example in YouTube application it has Headings in it's drawer like Subscription and from YouTube... So How we can add such Headings in Drawer Layout?
Check below image I want to add heading like "Subscription" used in this image.

The magic is happening in the
Adapterthat is feeding views to theListView.When a
ListViewis scrolled, it has to display whatever row is next in the data set. Instead of having to do this on their own,ListViews are backed by anAdapter. TheListViewessentially asks the adapter for the next view (naming an index value) every time it needs to scroll up or down.The
Adaptercan pass theListViewwhatever it wants. When theListViewasks for row x (an index value), theAdaptercan look at the data set and see that row x should be a special header. The adapter builds or recycles a special header view and passes it to the list view.See the List View Guide for example code.