I am trying to implement Android sidebar. I know how to implement sliding sidebar with Drawer layout. The first pic is list and when I click on one of the item it shows the relevant list items. How to do this? please help me.

[![First pic with side headings](https://i.stack.imgur.com/wTt2H.png)](https://i.stack.imgur.com/wTt2H.png)

[![List based on first pic heading](https://i.stack.imgur.com/1IMwi.png)](https://i.stack.imgur.com/1IMwi.png)