I am developing an application in which the background image get shrink on keyboard pop-up. My .xml is as follows :
Just use in your onCreate()
this code:
protected void onCreate(Bundle savedInstanceState) {
...
getWindow().setBackgroundDrawableResource(R.drawable.your_image_resource);
...
}
and eliminate this line in your xml:
android:background="@drawable/background"
Read more at:
http://developer.android.com/reference/android/view/Window.html