I am developing an application in which the background image get shrink on keyboard pop-up. My .xml is as follows :
Check this answer, the basic trick is you don't set the background to the layout but to the window. This can be done from the activity with getWindow().setBackgroundDrawable(), or you can set it in a theme to your activity.
getWindow().setBackgroundDrawable()