'How to create an embedded drop-down menu in listview

How do I create an embedded drop-down menu in listview. When the user clicks the item, it will generate additional items in the listview for the user to choose. enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source