Reputation: 228
I have string like this :
you
me
i
me
i
i
you
me
me
I want to group that string in my ListView like this :
you (2)
me (4)
i (3)
and if I click "you (2)", show ListView again like this :
you
you
Can you help me?
Upvotes: 0
Views: 129
Reputation: 1808
First you need to sort your list adapter. For sorting this will be useful for you http://www.anddev.org/code-snippets-for-android-f33/alphabetical-listview-in-android-t56983.html
Then implement expandable list
As Dheeresh Singh said, please work on some code and then we can help more. Thanks
Upvotes: 1