Multiline issues with mobilecontrol fields

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
cusingerBUSCw5N
Posts: 338
Joined: Wed Jul 11, 2012 9:24 pm

Multiline issues with mobilecontrol fields

Post by cusingerBUSCw5N » Tue Sep 25, 2012 3:10 pm

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?

cusingerBUSCw5N
Posts: 338
Joined: Wed Jul 11, 2012 9:24 pm

Re: Multiline issues with mobilecontrol fields

Post by cusingerBUSCw5N » Wed Sep 26, 2012 4:25 am

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

Post Reply

Return to “Android Deployment”