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
Contributor
Posts: 14
Registered: ‎10-31-2010
My Device: Not Specified

Text alignment changes when installing on Hebrew supported device

Hi,

I have developed an application. I have used English as application's language.

Now, I have porting my application to Hebrew supported device and the text "lost" its alignment.

All Labels adhere to the Right side of the screen.

How can I avoid this lost of alignment?

Thanks,

Eyal.

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Text alignment changes when installing on Hebrew supported device

Hi Eyal,

 

Have you tried adding style flags to your text labels?

 

FIELD_LEFT or TEXT_ALIEN_LEFT flags should do the trick.

 

E.

Contributor
Posts: 14
Registered: ‎10-31-2010
My Device: Not Specified

Re: Text alignment changes when installing on Hebrew supported device

I have tried the FIELD_LEFT flag but i can not find TEXT_ALIEN_LEFT  in my SDK,

I'm using SDK 6.

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Text alignment changes when installing on Hebrew supported device

It's TEXT_ALIGN_LEFT and it is a member of RichTextField.

 

E.

Contributor
Posts: 14
Registered: ‎10-31-2010
My Device: Not Specified

Re: Text alignment changes when installing on Hebrew supported device

Unfortunately, i'm using LabelField which is not derived from RichTextField.

 

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Text alignment changes when installing on Hebrew supported device

For LabelField you can use the DrawStyle.LEFT flag.

 

E.

Contributor
Posts: 14
Registered: ‎10-31-2010
My Device: Not Specified

Re: Text alignment changes when installing on Hebrew supported device

Does not work.   :-(