Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Vladimir_Z_
Beginner
375 Views

Prevent resizing the App view when oppening on-screen keyboard

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-resizi...

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?

 

Tags (2)
0 Kudos
2 Replies
Dale_S_Intel
Employee
375 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

 

 

PaulF_IntelCorp
Employee
375 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.

Reply