Montoya
Montoya

Reputation: 3049

Android - EditText error changes position on keyboard open/close

I am using editText.setError() attribute but the onKeyboard open/close the error float message changes position to be many pixels higher than the editText instead of being right under it.

I have added:android:windowSoftInputMode="adjustPan" to the activity at the manifest file and at the EditText xml.

enter image description here

How can i fix it?

Upvotes: 0

Views: 597

Answers (1)

Gjson
Gjson

Reputation: 99

Yeah,that's your xml maybe some error.you can Modify the layout ,mostly the edittext layout group ,you should change the background to transparent bellow the windowSoft. In a word ,take notice the layout ,Clever use of transparent at the bottom .

Upvotes: 1

Related Questions