Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard over EditText on second click

This is the picture:

enter image description here

When I click on the "Confirm password" EditText, for the first time, it works the way it should - layout pops up so I can enter text in selected EditText, but when I dismiss keyboard(that EditText still focused) and click on that same EditText again, it stays under keyboard.

Main layout is RelativeLayout, input fields are in ScrollView and buttons are in LinearLayout aligned to parent bottom.

In manifest I have android:windowSoftInputMode="adjustPan".

Is this some Android issue or I've been doing something wrong?

like image 704
user3572576 Avatar asked Dec 02 '14 11:12

user3572576


1 Answers

It's actually a bug in EditText. try removing gravity of EditText, which could be either center_horizontal or center

Got the answer from another question. check this.

like image 80
Nabeel K Avatar answered Oct 26 '22 12:10

Nabeel K