From: Arno P. <ar...@pu...> - 2011-04-12 07:03:42
|
The problem you are experiencing has to do with the fact that the Java emulator does not handle labels with line breaks. When we began with the Java API for iOS, we also implemented the behavior of the various widgets, which ended up being the Java emulator. Note that this is a humongous task because you have to implement the behavior of every iOS widget in Java. At some point we (the core team) decided not to extend the Java emulator any further but focus our energy on cross-compilation. If someone contributed patches to enhance this, we would certainly be more than happy to add them to XMLVM. Arno On 4/11/11 11:42 PM, John Comeau wrote: > The Java iPhone emulator that comes with xmlvm starts showing text in > the middle (vertically) rather than top, and doesn't render linefeeds. > See the difference between http://jc.unternet.net/blog/androidfail.png > (with ant run-Android) and http://jc.unternet.net/blog/javafail.png > (with ant run-Java); any ideas as to how to solve this? I tried > changing my strings to "some string\r\n" but it didn't help the Java > output, and it put a rectangular box at the end of the strings in the > Android display. |