-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 If your concern is to split the line at a word boundary, you may want to look at java.text.BreakIterator.
On 07/29/2010 10:52 AM, Grzegorz Ae wrote: > Hi, > I'm wondering how can I split single line text into few lines. I need > it for game. I want to make it in canvas. It will be notification > popup, but sometimes text is too long (I draw text canvas.drawText()), > and I need to split it and draw in few lines in rows. Anyone knows a > good solution? I saw methods mPaint.measureText() or > TextUtils.split(), but it isn't so good in my case. Is there other > method? > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkxRwiQACgkQ9RoMZyVa61cRgACfQFx9g1jqpVszX9e4pNQp5RRs f2AAoKc1J8SPgPjnmXa6WDg/s19cHZAQ =Y5Hv -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

