[android-developers] Adding separators to a ListView
Hi all. I have created a ListView from a collection of objects, using
an ArrayAdaptor to set the items.
The objects used to populate the list have a NAME field, and are
sorted into alphabetical order, so ultimately the ListView is long
list of names.
I now want to make the list more user friendly. I'd like to add a
separator for each letter of the alphabet, saying "A", "B" etc. The
separator could be one of the list items (non-clickable) or just a
normal View.
I'm just not sure how I can manipulate the ListView to achieve this,
and would appreciate any help.
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home