Keyboard isn't pushing content in webview - android

I have an html/javascript/css/jquery page running in a webview of an Android app.
When the user taps on the login text box the keyboard shows up fine. The problem is that the keyboard actually shows up high enough to completely cover the text box. The webview content isn't pushing up and it isn't scrollable any more than it would if the keyboard wasn't showing.

Related

Android: Textinput does not rise up in fullscreen mode inside a webview

My Android APP has a webview to display html content, in one of the pages have text boxes, and when I click on the text box appears the Android keyboard, and the textbox show up to be visible, so far so good, but when I put the application in Fullscreen Mode, when I call the keyboard, textbox does not rise up.
Does anyone know why?

Android 4.4 Soft Keyboard is empty

I'm trying to make my android app backwards compatible, from targetSDK=21 to minSDK=19. My app has webviews. When an input field in the webview is focused, the keyboard comes up, but nothing is displayed but the background color in place of the keyboard. But something is definitely there; when I press the space where the keyboard should be, keys are being pressed (ie. letters get entered into the input field), but I just can't see them. Also, the keyboard space covers up the webview so I know that something is there. Any ideas on what's going on?
EDIT: Here's a link to a screenshot. The bottom grayish area is where the invisible keyboard is. If I press on this area, keys do get pressed but the actual keyboard is not visible.
https://www.dropbox.com/s/4pbfj6gey2h6dyc/Screenshot_2015-09-17-12-50-22.png?dl=0

Screen goes black when virtual keyboard hides - Samsung Galaxy Tab 10.1 / Android 3.1 / PhoneGap

If I position a text input in the lower half of a page, when the user taps it to show the virtual keyboard, the page automatically slides up. When you tap away from the keyboard, the page automatically slides down again. I.e., everything is fine.
But when the text input is located in the top half of the page (in which case the page doesn't automatically slide when the keyboard appears), the behaviour is bad:
User taps the text input;
The whole screen (except the text input) turns black momentarily, then the keyboard slides up;
The user taps away from the keyboard;
The screen flashes black before the page is rendered again.
However, if you try the above steps a second time, the sequence is:
1. Same as above;
Same as above;
Same as above;
The screen turns black and stays black;
The user taps on the black screen;
The page is shown again.
I've tried a few different things, like detecting when the text input loses focus (i.e., keyboard hidden) to show to page, scroll the page, etc. but nothing seems to prevent this problem with the black screen.
Showing a javascript alert when the text input loses focus avoids the black screen problem (but I don't want an alert to show either!).
I've also tried using android:hardwareAccelerated="true" inside my AndroidManifest.xml's tag. And whilst that does fix this particular problem, it unfortunately creates many more rendering problems throughout the web app.
Does anyone have any suggestions?
Put this code in your manifest file in your launching activity tag
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:windowSoftInputMode="stateHidden|adjustPan"

How to show the contents hidden by keyboard in the webview

My android application is a webview, and in first page there are 5 editboxes. When i enter some data in editbox the last editbox is hidden by keyboard. So i enclosed webview within a scrollview. But the scrolling is happening only on the first page but not on all the other pages. Is it possible to scroll screen up only if keyboard is hiding some text in webview?
Meanwhile i tried using the window attribute windowSoftInputMode="adjustResize" but still i am getting the same problem. Any Ideas on how to make this working?
-Regards,
Ron..
This could be the consequence of http://code.google.com/p/android/issues/detail?id=5497. Looks like adjustResize should work if you created your layout correctly, but it will not if your app is in fullscreen mode (i.e. the Android status bar is not displayed). If your app runs in fullscreen mode, try the 'normal' mode for a change and see if the webview adjusts its size correctly when the keyboard is displayed.

Android keyboard hides itself, showing blank space below, after coming back from screensaver

I am working on an android app and really enjoying it too. But today, I got stuck on a small problem with soft keyboard.
I have an EditText at the bottom of the screen and when user clicks on it a keyboard pops up ,resizing the entire view to show the EditText above keyboard, which is as it should be. But if user doesn't do anything for sometime, phone sleeps and screen gets locked with the keyboard still present in the screen. When phone comes back after sleep, the keyboard seems to hide itself, leaving my views in a resized state. A blank space is shown where the keyboard has been present..I would be happy if
The keyboard remains there after
coming back from sleep..
Let the keyboard hide,but my views
should go back to original size, ie
without any blank space..
What can I do to achieve any of these?

Categories

Resources