Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 521
Chintan Khetiya Avatar asked Nov 02 '22 14:11

Chintan Khetiya


1 Answers

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

like image 65
Karthi Avatar answered Nov 08 '22 04:11

Karthi