title: How to keep background image size when software keyboard show
body: <p>When the software keyboard shows, it resizes my layout and thus squeezes the background image together. My question is basically a duplicate of this question, which is explained in a very good way:</p>
  
  <p><a href="https://stackoverflow.com/questions/4287473/android-soft-keyboard-resizes-background-image">Software keyboard resizes background image on Android</a></p>
  
  <p>However, that question was closed when they found a hack to solve it. I cannot use this hack. My entire layout is inside a ScrollView, and I need to be able to use this scrollview properly at all times. By using android:windowSoftInputMode="stateVisible|adjustPan" the user will not be able to scroll down and see the bottom of the screen while the keyboard is showing, since the layout will partly exist behind the keyboard. Thus the solution is unacceptable to me. Are there any better solutions out there?</p>
  
  <p>Cheers,</p>