OK. I achieved to obtain what I want on android by setting RTL to true and alignment to left. On the simulator however, the beahviour is different and impossible to get it right (so I will just hope that on iOS it is also OK cause I can't test it for now). One thing that is quite misleading is that when setting RTL to true, TextField text alignment direction are inverted (so setting the text alignment to left would actually align the text to the right of the screen): https://streamable.com/pvlip
Also, wanted to point out that there seems to be a bug in the CN1 GUI builder. When I check the RTL advanced property of a TextField (to set it to true), this is not transposed into the generated java code (the rTL="true" tag is correctly present in the .gui XML file generated by the GUI builder but the setRTL(true) method is never called into the generated java code (maybe because the XML rTL flag has a lowercase r ?). So I had to add it manually to make it work) On Wednesday, April 25, 2018 at 9:19:47 AM UTC+2, Shai Almog wrote: > > RTL is the wrong word here. It's bidi: bi-directional. > When you turn on RTL it treats the field as RTL but if you type with an > LTR language it will type it correctly otherwise Hebrew speakers wouldn't > be able to type numbers ;-) > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/c471af61-6559-432b-9067-5336af25196a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
