Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Developer
Posts: 1
Registered: ‎12-01-2008
My Device: Not Specified

Using ListField to mimic global inbox UI

I am trying to make a screen that looks like a mail inbox.  With a message type field separated with a day headline whenever a message is in a new day.  Would using a ListField control be the best way to do this?  Any recommendations.


These messages aren't emails or anything, just a way to organize notes, etc.




Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Using ListField to mimic global inbox UI

It would be a good start, though you would have to artificially insert 'day headlines' into the list of items to be displayed and format these differently, and make sure you menu items did not work on these entries.


It would also be possible to have multiple ListFields each separated with something like a LabelField which was the day heading, this gets over the problem above but makes your screen more complicated. 


I would go with your suggestion as a good first start and see how you get on.

Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Using ListField to mimic global inbox UI

the native screen does not use multiple fields but inserts the title bar objects in between the mails.
if you use a simplesortingvector as the underlying construct and implement it to sort mail objects as well as title bar objects you should have no problems, you could also populate a second vector from a sorted vector containing only mails and add the title bar objects accordingly.
your drawlistrow has 2 drawbitmap (exclaimation mark and the different mail symbols) followed by two drawtext methods with ellipsis style.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter