How to use "adjustResize" to adjust view in Android using phonegap?

2.3k Views Asked by At

We can set android:windowSoftInputMode="stateVisible|adjustResize|adjustPan" to adjust screen view while user click on Edit Text Field.

I want to do same thing in HTML form. While user click on Textbox then view should be automatically adjust so user can type easily ans along with that they can see what they are typing exactly.

See the difference

enter image description here enter image description here

How can i do same thing in android using Phone Gap.I hope you will guide me in right way.

Thank you for read my query.

1

There are 1 best solutions below

0
On

My solution was to change the target-densitydpi on the viewport to:

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />

Hope it helps