The way to prevent this is to split strings so that they fit on the 
display. The drawText is low-level code and you cannot expect the api to 
do linebreaking for you.

Be careful when using drawChar - i used to draw strings char-by-char and 
then linebreak if the end of the display was reached. But that did not 
perform very well on older phones. Instead, split your string once into 
different lines and then use the drawString on each "line".

Take a look at Font.stringLength() - there you can check the length of a 
string when it is drawn.

Greetings,
markus

Sergio Ordoño Marín schrieb:
> Hi, a simple question, when I use the drawText in my canvas with large
> strings, it goes out of the device screen and don't show all the text.
>
> There are some way to prevent this?
>
> Thank you!!
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Eclipseme-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/eclipseme-users
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to