Expandable listview with Root Header

I need an expandable list view with root header Essential and Other. Further Essential will have many header like India, Pakistan, etc,. On-clicking India I will expand and show States India like Delhi, Gujarat, Rajasthan, etc.

It is basically like

Essential
|
|-India
-----*****
-----*****
-----*****
-----*****
|-Pakisthan
-----*****
-----*********
Others
|
|-USA
-----*****
-----*****
-----*****
-----**********
|-UK
-----*****
-----*********

enter image description here

How to make header like Essentials and Other on Expandable list view ?


Source: android

Leave a Reply