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
Developer
satish4ru
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... 

Please use plain text.
Developer
satish4ru
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... 

Please use plain text.
Developer
peter_strange
Posts: 19,601
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. 

Please use plain text.
Contributor
snarasimhan
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!

Please use plain text.