Ravi
Ravi

Reputation: 111

Phonegap Android: keyboard overlap screen want to push screen up but it doesnot

Phonegap Android: keyboard overlap screen instead of pushing application up in device. I want to see the input box so that I can see what I am typing.

We have tried following solutions:

  1. config.xml : <preference name="fullscreen" value="false" />

  2. AndroidMainfest.xml - android:windowSoftInputMode="adjustResize"

But it doesnot work.

Please help me what to do. Thanks in advance

Upvotes: 0

Views: 1691

Answers (2)

Ravi
Ravi

Reputation: 111

android xml path: app/platforms/android/res/xml/config.xml

changes:

<preference name="android-windowSoftInputMode" value="adjustResize" />
<preference name="fullscreen" value="false" />

Upvotes: 2

DavidC
DavidC

Reputation: 136

As stated here: http://docs.phonegap.com/en/edge/config_ref_pgb_config.md.html, if you are using a remote cli or PhoneGap Build, try this into config.xml

<preference name="android-windowSoftInputMode" value="adjustResize" />
<preference name="fullscreen" value="false" />

Otherwise, as a (ugly) workaround, you could scroll the view so the input having the focus is at the top of it.

Upvotes: 1

Related Questions