newline character (\n) in display.newText

Hello,

Is it possible to use \n (newline character) with display.newText ? When I use it on the simulator, it works. However, it doesn't work when I run the apk on an android phone.

Thanks,
Cem

\n isn't currently usable however you can use this; http://developer.anscamobile.com/code/auto-wrapped-text-updated

Peach :)

Thanks, an interesting but nice way to approach the problem :)

you can also do something like this

1
2
3
4
txt ={ "line1"},{"line2"},{"line3"}
for a=1,#txt do
    distxt=display.newText( txt[a], 100, 50+(a*30), native.systemFont,16)
end

Seriously and ideally, why use some much lines of codes when a simple '\n' should had done the same job?

It would be great Ansca correct the problem.

Cheers.

views:1630 update:2011/10/16 9:47:44
corona forums © 2003-2011