Android 浮动窗口 相对布局中向左或上添View无效

android:id="@+id/layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#FFFFFF" >
android:layout_width="200px"
android:layout_height="200px"
android:background="#FFFF00"
/>
android:layout_width="100px"
android:layout_height="200px"
android:layout_toLeftOf="@id/b1"
android:background="#FF0000"
/>
android:layout_width="100px"
android:layout_height="200px"
android:layout_toRightOf="@id/b1"
android:background="#FF00FF"
/>
android:layout_width="200px"
android:layout_height="100px"
android:layout_below="@id/b1"
android:background="#000000"
/>
android:layout_width="100px"
android:layout_height="200px"
android:layout_above="@id/b1"
android:background="#FFFF00"
/>

WindowManager.addView((RelativeLayout)layout1.findViewById(R.id.layout), wmParams);

图片说明
左和上的按钮并没有显示出来 这个问题如何解决?

http://www.th7.cn/Program/Android/201308/145720.shtml

http://blog.csdn.net/stevenhu_223/article/details/8504058