Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phonegap android add windowSoftInputMode using config.xml

I am creating a phonegap application and for android build I want to set the windowSoftInputMode property of Andriod manifest file using config.xml.

Is there any way to do it using config.xml or command line.Kindly suggest.

Thanks in advance.

like image 874
Rawat Raman Avatar asked Nov 10 '14 09:11

Rawat Raman


1 Answers

Add following preference in your config.xml file :

<preference name="android-windowSoftInputMode" value="stateVisible|adjustResize" />

Also you have to disable the full-screen preference :

<preference name="Fullscreen" value="false" />

Check more :

  • Android+PhoneGap: android:windowSoftInputMode doesn't seem to work
  • Cordova Bug
like image 174
turtle Avatar answered Nov 09 '22 02:11

turtle