VictorB
VictorB

Reputation: 117

Soft keyboard hides on typing in Android EditText

I have a couple of EditText fields on a form and when I start typing in either of them, the soft keyboard hides on each character input.

Is this something that is known and is there a way to handle this issue? There doesn't seem to be anything special done to these fields to cause this issue.

I've googled for a solution, also browsed through various questions here, nothing helpful so far though.

Thank you.

Upvotes: 0

Views: 304

Answers (3)

Raseem Ayatt
Raseem Ayatt

Reputation: 1020

it will work.

 <activity android:name=".Mainactivity"
        android:windowSoftInputMode="adjustPan"/>

add this in your manifest file

Upvotes: 0

Qandil Tariq
Qandil Tariq

Reputation: 539

Add following line

android:windowSoftInputMode="stateHidden"

in manifest under your that activity.

Upvotes: 0

krishna
krishna

Reputation: 301

you can try this

android:windowSoftInputMode="adjustPan"

or

android:windowSoftInputMode="adjustResize"

in manifeast file under your activity tab

Upvotes: 1

Related Questions