Show initial Letter in a ListView

stefanoa

Active Member
Licensed User
Longtime User
Hi,
anyone knows how to display the first letter of an alphabetical list of contacts while browsing the list (using vertical scrollbar in a ListView).?
ie. show A B C etc ..
thanks
 

barx

Well-Known Member
Licensed User
Longtime User
I'm assuming you mean something like this.

No idea how it is done but just thought I'd add a pic so people knew what you was looking for.
 
Upvote 0

COBRASoft

Active Member
Licensed User
Longtime User
You should use a scrollview and place everything yourself (labels, buttons, ...). When going through your sorted list of contacts you can easily know when the first letter is different from the last one. At that point (simple if structure) you can add an extra label with the letter. At least, this is how I would do it .
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…