Page 1 of 1

Multiline issues with mobilecontrol fields

Posted: Tue Sep 25, 2012 3:10 pm
by cusingerBUSCw5N
I have had to use mobilecontrols to get input fields to work in an Android environment.

When I use multilines, two bad things happen:

1) The text that is typed in is vertically aligned to the center - not the top.

2) The keyboard doesn't close - even if you use "focus on nothing" and there is no "done" button on the keyboard.

I have checked the forums and information and for my vertical alignment issue, there is something about margins, but I don't know the code to set a margin for a mobilecontrol.

I have tried this:
mobileControlSet "myeighthInputField", "vertical-align","top"

but it doesn't work.

For the keyboard issue, I see reference to mobgui - which I think is a paid-for plug in - but I also see reference to the fact that it isn't supported anymore...

The keyboard for single line mobilecontrols has a "done" button".

Can you help please?

Re: Multiline issues with mobilecontrol fields

Posted: Wed Sep 26, 2012 4:25 am
by cusingerBUSCw5N
In looking online, android seems to have a gravity setting

android:gravity="top"

which determines where the cursor starts. However, I've tried adding this to liveCode, with no effect

mobileControlSet "myeighthInputField", "gravity","0x30"
mobileControlSet "myeighthInputField", "gravity","top"
mobileControlSet "myeighthInputField", "gravity","top|left"

...with and without quotes... - doesn't work