Reputation: 14668
I have created a drop down in my android application using a spinner. However the items in my spinner should have sub items. What I am trying to achieve is that when user clicks on one of the items, another drop down box is shown. (as if a spinner fanning out another spinner)
I am open to other suggestions beside a spinner if there is a better way to achieve it?
Upvotes: 1
Views: 131
Reputation: 6342
Have a loot at ExpandableListView
If you don't want it to be in a separate screen, you can place this into a Dialog, and make the dialog automatically dismiss and select the sub-list item that is pressed.
Upvotes: 1