Android how to add an expandable listView for navigation drawer item?

I have a navigation drawer with items & sub items where drawer items layout like this

  <item android:title="items"
                android:title="items collection one" />
                android:title="items collection two" />
                android:title="items collection three />

I have more than one like previous one I need the children items to have expandable listView appearing when onClick event I found tutorials on adding expandable listView to navigation drawer but I need to to add it not to the drawer itself but to the items of drawer like this question here

Use custom layout for your Drawer , which contain RecyclerView. Expandable list is created by using appropriate adapter for RecyclerView