-1

The Edittext field is covered with the current keyboard.
People don't see what they are typing at the moment. The page is a fragment.

Here is a XML layout of the mentioned Edittext:

<EditText
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/commentEditText"
            android:windowSoftInputMode="adjustPan"
            android:hint="Opmerkingen" />

It doesn't work. Maybe I'm doing it the wrong way. Can you help me to solve it? https://i.stack.imgur.com/XmuXm.png

Haast
  • 19
  • 7

3 Answers3

0

Add this line to your activity tag in Menifest file,

 <activity 
        android:name=".LoginActivity"
        android:windowSoftInputMode="stateAlwaysHidden|adjustPan"/>
Vishal Vaishnav
  • 3,346
  • 3
  • 26
  • 57
0

use android:windowSoftInputMode=adjustPan in mainfiest file inside activity

use like this see example

  <activity
        android:name=".activity"


        android:windowSoftInputMode="adjustPan|stateAlwaysHidden">

    </activity>
android_jain
  • 788
  • 8
  • 19
0

You can try using android:windowSoftInputMode="adjustResize" in your activity's manifest file, which will resize your screen to fit keyboard.

If user still cannot see input on EditText you can try android:windowSoftInputMode="adjustPan", which does not resize screen to make room for the soft keyboard. Rather, the contents of the window are automatically panned so that the current focus is never obscured by the keyboard and users can always see what they are typing.

Shashank Udupa
  • 2,173
  • 1
  • 19
  • 26