I had the same issue.
Add your outer layout background inside onCreate method as show below
getWindow().setBackgroundDrawableResource(R.drawable.login_bg);
and add your outer layout as
Add android:layout_weight="1"
for the outer layout and don't set background in xml file
I think this helps someone