Software Archive
Read-only legacy content
17061 Discussions

Prevent resizing the App view when oppening on-screen keyboard

Vladimir_Z_
Beginner
768 Views

I am developing a hybrid video game, i.e javascript inside crosswalk chrome apk file.

The debugging is working well and I managed to use jquery to initiate focus event on html input element to show the android keybord.

The problem I have is when the keyboard appears, it squeezes the application viewport which is not what I want.

Tried to follow this SO question: http://stackoverflow.com/questions/10076148/phonegap-is-there-a-way-to-stop-the-keyboard-from-resizing-the-view

but it doesn't work and I don't know where to find AndroidManifest.xml file inside Intel XDK studio.

If you were to put settings such as:

android:windowSoftInputMode="adjustPan"

android:configChanges="orientation|keyboardHidden"

where would you put them?

 

0 Kudos
2 Replies
Dale_S_Intel
Employee
768 Views

Try adding to the file 'intelxdk.config.additions.xml' in the root directory of your project (same place as the project-name.xdk file and the www directory, which contains index.html).

Dale

 

 

0 Kudos
PaulF_IntelCorp
Employee
768 Views

There is an option for this that can be used in the intelxdk.config.additions.xml file (see the doc page here > https://software.intel.com/en-us/xdk/docs/cordova-for-android-build-options <) but it is currently not working with our build system. This is actually a PhoneGap Build feature that was implemented in our older build systems but did not get transferred to the new build systems. I recommend you use the Ionic keyboard plugin to get better control of the Android soft keyboard.

0 Kudos
Reply