9patch background breaks after adding layouts over it
===

I´m working on a level scene where I put a 9-patch image to the background. It seems to work fine until I add some layouts, like Viewpager over it.
It looks like this:
![enter image description here][1]


  [1]: http://i.stack.imgur.com/n0cZS.png

So the upper part, where the white edge of the blanket is, should be static and the rest should fit the screen. When I add the viewpager and the viewpagertab to the screen,it breaks the background of the layout! Why is that?

The code:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:weightSum="10"
    android:background="@drawable/background"
    android:paddingTop="0dp"      
    >
        
    <android.support.v4.view.ViewPager
        android:id="@+id/pager"
        android:layout_width="match_parent"
        android:layout_height="0dip"
        android:layout_weight="9"        
        android:layout_marginTop="66dp"        
       />
    
    <core.world.ViewPagerTabs
        android:id="@+id/tabs"
        android:layout_width="40dp"
        android:layout_height="0dp"        
        android:layout_weight="1"
        android:layout_gravity="center_horizontal"               
        />

</LinearLayout>
