When you are editting on a mobile phone, it will pop up the keyboard so that what on then screen will be partly covered by it. Is there any way or API by which we can get the accurate height of the keyboard?? As we can move up the content of the screen when keyboard shows. thanks!! I look forward to your reply.
Corona doesn’t provide an API to return the value, but we have two experimental properties called:
CoronaWindowMovesWhenKeyboardAppears
on iOS and
coronaWindowMovesWhenKeyboardAppears
for Android that you can put in your build.settings. We pretty much think it works well on Android. We know there are some issues on iOS (I think for when you’re trying to change orientation it doesn’t work as expected). Because these are experimental we don’t have plans to fix issues. Many people use them with success however. You will have to search the forums or Google for previous forum posts on it’s use. Basically it moves the active text field just above the keyboard automatically.
I know that’s a frustrating answer. There are however a couple of plugins in the Marketplace that can also help with this. See:
https://marketplace.coronalabs.com/plugin/keyboard-events
https://marketplace.coronalabs.com/plugin/more-info
Both have some support for getting keyboard height information.
Rob
Corona doesn’t provide an API to return the value, but we have two experimental properties called:
CoronaWindowMovesWhenKeyboardAppears
on iOS and
coronaWindowMovesWhenKeyboardAppears
for Android that you can put in your build.settings. We pretty much think it works well on Android. We know there are some issues on iOS (I think for when you’re trying to change orientation it doesn’t work as expected). Because these are experimental we don’t have plans to fix issues. Many people use them with success however. You will have to search the forums or Google for previous forum posts on it’s use. Basically it moves the active text field just above the keyboard automatically.
I know that’s a frustrating answer. There are however a couple of plugins in the Marketplace that can also help with this. See:
https://marketplace.coronalabs.com/plugin/keyboard-events
https://marketplace.coronalabs.com/plugin/more-info
Both have some support for getting keyboard height information.
Rob