Problem with Native Keyboard on Android (Samsung Galaxy S2)

Hi!

I’m currently playing around with Corona, and noticed some problems with the Native Keyboard on my Android (Samsung Galaxy S2).

When testing with the unmodified NativeKeyboard2 sample code, I get the following:

This is the default view, and is as expected.

However, if I click of any of the text boxes, I get the following result:

The native UI fields are staying in position, but the Corona stuff is scrolled upwards due to the keyboard moving in…

Question one: Is this intended? I guess I can do some work to make it prettier, or move some of the things while the keyboard is showing…

Also, I noticed that if I lock my mobile while the keyboard is showing, the Corona parts are resized when I unlock my mobile again:

Now the content is resized, and fit the screen… HOWEVER, when the keyboard is removed (back-button or other thing to make it loose focus), the screen is still resized:

Question two: Is this a known problem?

In another project of mine, I noticed that it’s only the visible parts that are resized. Tap-events still trigger where the old item/text was shown, not where it’s shown after the weird resize [import]uid: 96201 topic_id: 16083 reply_id: 316083[/import]

Funny you should mention this. I saw this behavior today on my Galaxy S2 as well and ended up fixing it… although the release notes don’t indicate this because one fix we did ended up “accidentally” fixing this issue too. :slight_smile:

You are correct that the virtual keyboard on the S2 was incorrectly resizing the screen. It’s weird that we weren’t seeing this behavior on other devices, but the fix we implemented now prevents the screen from ever being panned or resized.

In any case, try testing this again on the next daily build which should come out tomorrow, numbered build 633. [import]uid: 32256 topic_id: 16083 reply_id: 59827[/import]