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: 329
Registered: ‎12-17-2010
My Device: Not Specified
My Carrier: developer

how to put a text at middle of the seperator field

Hi all ,

 

how to achieve below field please give any suggestions to make it... 

Developer
Posts: 329
Registered: ‎12-17-2010
My Device: Not Specified
My Carrier: developer

Re: how to put a text at middle of the seperator field

seperator.PNGseperator.PNG

 

 

How to make this image horzontally like above please help me out... 

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

Re: how to put a text at middle of the seperator field

[ Edited ]

Override paint in a USE_ALL_WIDTH LabelField.

 

In paint() figure out how big the Field is then use drawLine, and drawText to create the line and 'or' in the correct places. 

Contributor
Posts: 24
Registered: ‎08-04-2010
My Device: Not Specified

Re: how to put a text at middle of the seperator field

Could you please elaborate? Cant really understand what you are trying to do!