When I use the soft keyboard to type in a text inside a WebView
, it hides the field and I cannot see what I am typing.
I found out in the official documentation and also this link, this question, also this question and many other websites that by using :
android:windowSoftInputMode="adjustResize"
in the Android Manifest would do the trick.
It normally works BUT in my case I have my WebView
in Full Screen where this prevents the above adjustResize
code to work.
I also tried in onCreate()
the following code:
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
where it does it full screen but still the adjustResize
is not working.
So my question is how I can use android:windowSoftInputMode="adjustResize"
or any other way and also have my WebView
in fullscreen as well?
EDIT:
android:windowSoftInputMode="adjustResize"
or
android:windowSoftInputMode="adjustPan"
This code works but not in Full Screen.