Issues with Android Keyboard - android

Look at this...
This is the main screen of the android app I'm developing. When user touches first EditText, the system keyboard shows like this:
But when user touches second EditText, the keyboard shows like this:
Without that black bar on top of it... Does anyone knows why is this? I'm working with a Samsung Galaxy Nexus... Besides... I noted that the keyboard is displayed on top of GUI... but in another screen of my app the keboard makes the GUI to roll up, like this:
In this last image, on top of the three buttons is a ScrollView, is this the reason for the keyboard make this effect?
Can anybody help me here? I'm stuck!
Thanks!

Related

How to make in app custom keyboard behave like a system keyboard?

I have an in app keyboard that tries to behave like a system keyboard. So far it pops up from the bottom using Bottom Sheet, which is great.
However, unlike a system keyboard, it does not push the entire layout up when you select an EditText that might otherwise get hidden. So far all the solutions I saw on StackOverFlow seem to be about Soft/System Keyboard not an in-app implementation like mine.
Here is my activity with 3 Edit Texts
This is what happens if I click on the last Edit Text. It gets covered by the keyboard in blue
This is how I want it to be. Everything getting pushed up.
How can I achieve this?

Is possible Move Up Layout?

I would like to do it. This is iOS app
The entire screen went up and the keyboard was below the buttons
before displaying the keyboard:
after displaying the keyboard
The option "adjustPan" in adroid manifes not work like it, the buttons below of Edittext hide under keyboard
adjustResize should work for when you want to move the screen up.
https://developer.android.com/training/keyboard-input/visibility.html

Soft keyboard shrinks activity

I am writing custom soft keyboard. The problem is, that on Motorola Moto G it shrinks activity. This happens on any text input.
For some reason, this does not happen on another android, HTC One. What I am missing?
Some notepad withoud keyboard, notepad with my keyboard.
When I click on a button, everything become OK for a moment, that's why I took a shot of a screen phone instead of taking a screenshot.
In your AndroidManifest.xml file, look for your activity and try adding
android:windowSoftInputMode="adjustPan"

soft keyboard transition ... how does WhatsApp do it?

I've been working on a messaging app, and was just wondering if anyone had some insight in to soft keyboard transitioning.
As it stands, I have what is essentially my own input method (a layout at the bottom of the screen) for sending smiley faces, scribbles, things like that. My problem is that when the soft keyboard is toggled, i get some serious rubber banding and black boxes remaining during the keyboard transition.
I noticed WhatsApp does what is essentially a perfect transition between the soft keyboard and their own emoji keyboard, and in fact stops any soft keyboard animation (black area seen behind the keyboard) from taking place at all!
The closest thing I've come up with is a layout that crops anything that would be covered by the keyboard from re-rendering, but this doesn't seem to work all that great, and is nowhere near as smooth as WhatsApp.
Any help would be appreciated!
tl;dr how do i replicate whatsapp's emoji keyboard?
Whatsapp SEEMS to transition to a new keyboard, but in reality it doesn't quite do that.
It actually creates a custom dialog over the keyboard with their Emojis. This is why it smoothly transitions from the normal keyboard to the emoji one. You can check this for yourself by opening your keyboard, then opening the emoji screen, and finally select the input method from your notification bar. You'll see the new input screen is shown behind the emoji screen.

Webview moves up when keyboard hides

The issue happens in an application whith a linear layout that divides the screen in two parts, the upper part is a simple View and the lower part is a WebView that loads google.com. The WebView takes the 60% of the space and the View the other 40%. In that scenario I touch the google search bar showing the soft keyboard, inmediately I touch the WebView outside the search bar just at the right of the search button, that hides the soft keyboard but just before this the WebView moves up for an instant and comes back to its initial position as the keyboard dissapears, no idea of why this happens and how to avoid it.
Please see the sample application, to reproduce the issue you can use a WVGA (800×480) simulator, I noticed the issue in a Samsung Galaxy Tab 10.1.
http://www.fileserve.com/file/txC3RV6/WebViewDemo.rar
Any suggestion?
Thanks for your time.
Goyo.
If you put the entire linear view inside the scrollview then the webview wont move up.

Categories

Resources