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
Highlighted
Developer
Posts: 18
Registered: ‎12-16-2009
My Device: 8330
My Carrier: sprint

Graphical layout

Not sure exactly how to explain this... Please look at the Calendar app/New item.  Notice how there are nice rounded boxes defining various groups of fields?  I want to replicate this layout.

 

I assume they are defining top, bottom, left and right bitmaps for the layout manager to use when insert items such as edit fields and separators.  Can someone please point me in the right direction? 

 

Thanks and happy holidays!  Steve

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Graphical layout

I believe that this UI uses BorderFactory (4.6 and higher)

 

Developer
Posts: 18
Registered: ‎12-16-2009
My Device: 8330
My Carrier: sprint

Re: Graphical layout

Thanks, I'll look in that direction, my system is 4.5 so perhaps they've manually loaded bitmaps.

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Graphical layout

I think they simply "exposed" the BorderFactory in 4.6 - prior to that it was not in the public 3rd-party API's.

 

You can invent your own by using a Manager with a background, then making sure the fields are layed out to respect the border margin.

 

If you search the forum, I believe I recall a thread where someone had basically duplicated BorderFactory on 4.2.1 and higher, just for this purpose.

 

 

 

Developer
Posts: 18
Registered: ‎12-16-2009
My Device: 8330
My Carrier: sprint

Re: Graphical layout

Nice!  Thanks!