Best way to display items

smartlit

New Member
Licensed User
Longtime User
Hello,

I'm wondering what is the best view to use in order to do the following: I have a Map containing some keys and values (Name and PhoneNumber). When user presses a button, I need to display a list with all the items. For each item, I'd like to display the Name in bold and, in a line below, the phonenumber not in bold. When user does a long click over an item, a popup menu should appear with the ability to delete that item.

In other words, a simplified version of the Call Log that already exists in Android. What is the best way?

Thanks!

Paul
 

admac231

Active Member
Licensed User
Longtime User
Most definitely a ListView.

You have an ItemLongClick event which I would recommend simply showing a MsgBox2 with the Yes/No to delete.

When adding items use ListView.AddTwoLines (or AddTwoLines2 if you want an image in there)

You can use ListView.TwoLinesLayout.Label and ListView.TwoLinesLayout.SecondLabel to change the properties of the labels.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…