I have an input field in a web view, when you click on the keyboard input is shown, but it appears in the input field. I tried putting windowSoftInputMode="adjustPan"
in androidManifest, but still the same. When you open the same html page in the device browser, everything is fine. Any ideas?
Hi
UPDATE:
It does not have an XML layout, because I use the Phonegap framework, and Activity extends DroidGap and does not have a setContentView(xx.xml)
method.
public class TestActivity extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); setIntegerProperty("loadUrlTimeoutValue", 30000); super.loadUrl("file:///android_asset/www/index.html"); } }
source share