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
Posts: 20
Registered: ‎04-11-2009
My Device: Not Specified
Accepted Solution

How to set padding for TextField?

Hello, forum

 

Is there any way to set padding for TextField like I set it for LabelField using setPosition method?

  

Thanks in advance,

Mikhail 

Developer
Posts: 342
Registered: ‎02-04-2009
My Device: BB 8320

Re: How to set padding for TextField?

Did u looking for text alignment such as RIGHT, LEFT, CENTER etc., in TextField or else need to have some empty space prefixed before the actual value in the TextField?

Use Search. "Accept Solution" if the problem gets resolved.
New Developer
Posts: 20
Registered: ‎04-11-2009
My Device: Not Specified

Re: How to set padding for TextField?

Yes, I just need to add some empty space (like 10px) before the actual value. Probably, there is another way to put something empty and wrap both into HorizontalFieldManager. What is the best way to do this?

 

Thanks 

Highlighted
Developer
Posts: 342
Registered: ‎02-04-2009
My Device: BB 8320

Re: How to set padding for TextField?

Instead of adding empty space before the actual value in the TextField, I would suggest to add an empty LabelField before the TextField and align them as per your requirement using HorizontalFieldManager as you mentioned.

Use Search. "Accept Solution" if the problem gets resolved.