0

I need help with background.

My image change proportions when keyboard appears. How I can make background static?

Dávid Szabó
  • 2,179
  • 2
  • 13
  • 25
rudicjovan
  • 303
  • 2
  • 7

2 Answers2

2

Add this line in your manifest :

android:windowSoftInputMode="stateVisible|adjustPan"
Farouk Touzi
  • 3,479
  • 2
  • 17
  • 24
0

From the doc and this ,

Use following in your activity manifest

android:windowSoftInputMode="stateVisible|adjustPan"

"adjustPan"

The activity's main window is not resized 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. This is generally less desirable than resizing, because the user may need to close the soft keyboard to get at and interact with obscured parts of the window.

Community
  • 1
  • 1
Darish
  • 10,276
  • 2
  • 45
  • 66