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?
Multiline issues with mobilecontrol fields
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 339
- Joined: Wed Jul 11, 2012 9:24 pm
-
- Posts: 339
- Joined: Wed Jul 11, 2012 9:24 pm
Re: Multiline issues with mobilecontrol fields
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
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