2

I'm having a problem with the keyboard on android, I tested it on a couple of devices and I'm getting the same problem.

I have 3 EditText, the first 2 are of type text and the 3rd is numeric. The scenario is the following, when the user hits enter it takes him to the next EditText to fill in the info. When the user is at the second EditText the regular keyboard is open, when he hits enter the focus is on the 3rd EditText (Numeric) and the keyboard changes to numeric but the difference of the keyboard sizes(The regular one is bigger than the numeric) produces a black background.

Anybody experienced this type of behavior?

The activity has this in the manifest:

android:windowSoftInputMode="adjustPan"

Here's a screenshot

Screenshot

Malek Hijazi
  • 4,112
  • 1
  • 26
  • 31
  • That is probably related to suggestions. You might be able to [fix that by removing suggestions](http://stackoverflow.com/a/4488987/503508). – Knossos Jan 26 '16 at 13:50
  • @Knossos I tried adding no suggestions to all of the EditTexts but still the problem persists – Malek Hijazi Jan 26 '16 at 13:55

2 Answers2

1

Have you tried "adjustPan" and "adjustResize" ?? Else i can recommend the Android-API Chapter for Keyboards!! There are several more values specified for adjusting the Keyboard.

---> http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft

bofredo
  • 2,348
  • 6
  • 32
  • 51
  • adding adjustResize|adjustPan worked but now the EditTexts are hidden under the keyboard, they no longer scroll to top when focused – Malek Hijazi Jan 26 '16 at 14:06
  • i would try those "state" attributes on the Android-API. Maybe there is one suiting your needs. – bofredo Jan 26 '16 at 15:30
0

https://stackoverflow.com/a/33054397/1979882

use this:

android:inputType="textNoSuggestions|textUri"
Community
  • 1
  • 1
Vyacheslav
  • 26,359
  • 19
  • 112
  • 194
  • No luck, I dont think its a suggestions problem since its a black background and not empty suggestion fields – Malek Hijazi Jan 26 '16 at 14:06
  • @MalekHijazi , so, try to grab the viewport of your device in order to understand what is this 'black bar' means. – Vyacheslav Jan 26 '16 at 14:08
  • I am also facing the same issue. For me, nither android:inputType="textNoSuggestions|textUri" nor android:windowSoftInputMode="adjustPan" is working. So is there any more and perfect suggestion to solve the issue? – Darshan Trivedi Apr 18 '17 at 06:36