Welcome!

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

Reply
New Developer
nick125
Posts: 5
Registered: ‎11-01-2008
My Device: Not Specified

What UI component should I use?

I'm developing a small application that will display some device information in a list (just to get familar with developing on the Blackberry), but I'm not sure what UI component I should use for the list. It's going to be a list of labels and immutable values (i.e., "PIN: 1234567").

 

I was thinking of arranging it similar to the settings dialog pages, with the label left justified and the value right justified, but I'm not entirely sure how to do that (or rather, what the best way to do that would be).

 

Any ideas?

 

Thanks,


Nick

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: What UI component should I use?

[ Edited ]

Take a look at

 

net.rim.device.api.ui.component.LabelField

 

and also look at classes: net.rim.device.api.ui.container.VerticalFieldManager and
net.rim.device.api.ui.container.HorizontalFieldManager

 

Use LabelField to compose Prompts and Values, and use Manager classes to add and position fields on the screen.

 

Pay your attention to the LabelField and xxxxFieldManager internal constants for formatting purposes.

 

Message Edited by tbilisoft on 11-03-2008 03:53 PM