GUI similar to messages view for Blackberry application
I want to display messages from my application exactly in the same way as that of native messaging applicatio开发者_开发知识库n of Blackberry.
How do I achieve it in listfield? Also I want to add date headers that will display messages in the order in which they are received.
Please help. Thanks in advance.
If you want header grouping by date or sender etc think it's better to use VerticalFieldManager with:
LabelField (header A)
ListField (list A)
LabelField (header B)
ListField (list B)
...
LabelField (header Z)
ListField (list Z)
and dynamically generate those fields on grouping. also, implement items (and listField rows) sorting in listField constructor.
For example of complex ListField extention see How to customize list field in blackberry?
精彩评论