chandan kumar
chandan kumar

Reputation: 190

whole activity push up when start typing on EditText

This happens when i use

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);

enter image description here

And my layout looks like this when i use getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);

enter image description here

I already have ScrollView inside layout but I don't know why it behaves like this:

Upvotes: 0

Views: 222

Answers (1)

Pooja Nair
Pooja Nair

Reputation: 113

just try and add android:windowSoftInputMode="adjustResize" to the particular activity in android manifest file

Upvotes: 1

Related Questions