Blank space when soft-keyboard opens in Android - android

I need to use
windowSoftInputMode="adjustReszize"
for detecting Soft Keyboard changes i.e when it opens/closes.
My problem is that when I do this I see a blank space for a split second as the view is first re-sized and then the keyboard opens.
Is there any way to avoid this other then adding a background image to the window?

Related

How to show a fragment when soft keyboard is on the screen?

As you know when the soft keyboard is on the screen you can see a part of the main layout.How can I fill this part with a fragment? This fragment appears when the soft keyboard is on and it will gone with the soft keyboard.The main problem is how to evaluate the size and location of the fragment in different size and resolution.
I want to put an ImageIcon, a big EditText that shows what you have typed and a confirm button. Absolutely my problem is only to manage this fragment not the content of it.

Black screen will apear when Soft keyboard will close on surface view and also affected on Coverflow in the Fragment

I am using Fragment view in my application. And along with that at the top view I am using Surface view. I am opening soft keyboard on click of button. And then whatever I will write it must be showing on surface view. All thing working fine. But the issue is when I dismiss the soft keyboard one black screen will showing on background of my surface view.
If I used surfaceview.setBackgroundColor(Color.TRANSPRENT) then it will affected on my cover flow images. My images are not change frequently. It will affected when I open soft keyboard.
So I am not able to understand that how can I solve this problem? Is there any other solution to remove that Black screen?
Waiting for reply.

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"

Android Keyboard that doesn't squeeze layout but shift EditText

I have developed an iPhone app and now going to port it to Android. Almost all features work but the only thing I noticed is when I focus any Texbox or Textarea, the keyboard is opened and moves the whole page off the screen. I got to know that putting android:windowSoftInputMode="adjustPan" would solve the issue but then another issue came out.
Now when I focus any text element, the keyboard is opened but the view size is squeezed to the height (minus keyboard height) shifting bottom tab buttons above keyboard which is very bad effect in my opinion. Although it doesn't now move the whole page off the screen but can I use this property android:windowSoftInputMode="..." to ask it to show keyboard over tab buttons (hiding tab buttons under keyboard) but just move the view if the text elements are being hidden?

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