BlackBerry Lists best practise
I'm developing BlackBerry 5.0 application with list organized data. I'm using ObjectListField and manual drawing in overriden drawListRow. I'm afraid this is wrong, because all positionig inside row si done manualy, and now I have serious problem how to handle click on small icon inside row. There must be some better way, maybe using other control or simple HorizontalFieldManager in VerticalFie开发者_如何学CldManager instead of ListField, what is recommended and best practise?
In this case I would use a ListField and ListFieldCallback. You will still have to handle the drawing manually, but the ListField will handle the selection semantics. The selection will normally post a context menu for the ListField, but you can change that behaviour to invoke a default action if you want.
精彩评论