Reputation: 563
I am new to Android and I get confused when having to organize a layout that retrives data.
I want to be able to drop down below a general item a list of other items when clicking on it and be able at the same time to switch each one of them. I would like to do this properly by retrieving the list of items from a string-array
:
<string-array name="general1">
<item>ITEM 1</item>
<item>ITEM 2</item>
</string-array>
I don't want to use a spinner.
It's hard for me to see how to resolve this problem. Please any idea?
Upvotes: 4
Views: 11249
Reputation: 12803
I want to be able to drop down below a general item a list of other items when clicking on it and be able at the same time to switch each one of them
What you need is Android Expandable List View
Upvotes: 4