Thanks for reply. java.text.BreakIterator is that I was looking for. If recomend this class to split text: http://www.codecase.cn/Code/Java/I18N/Wrapmultilinestringsandgettheindividuallines.htm
On 29 Lip, 20:11, DanH <[email protected]> wrote: > Depends a lot on whether you just want to split by character count, or > rather by line width, given a specific font. > > On Jul 29, 12:52 pm, Grzegorz Ae <[email protected]> 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? -- 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

