Search code examples
androidtitaniumtitanium-mobileandroid-softkeyboard

Avoid soft keyboard from pushing my layout in Titanium


I have a textbox on a screen. When textbox is focused, the layout is shrinked and all messed up. I know how to resolve this in Android SDK, by adding android:windowSoftInputMode="adjustPan" to activity tag in AndroidManifest.xml. But How can I do that in Titanium? Is there a way to modify AndroidManifest.xml in Titanium?

Or Any other way to avoid soft keyboard from shrinking my layout.


Solution

  • I believe you put your controls into a view. If yes, try to set the height of the view. If no, try set this at the time of window creation

     windowSoftInputMode : Ti.UI.Android.SOFT_INPUT_ADJUST_PAN