在xml Android中添加背景图片以形状

如何将背景图片添加到形状?代码我试过下面但没有成功:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
//here is where i need to set the image
<solid android:color="@drawable/button_image"/>
    <corners
     android:bottomrighTradius="5dp"
     android:bottomLefTradius="5dp"
     android:topLefTradius="5dp"
     android:topRighTradius="5dp"/>
 </shape>

提前致谢。

使用以下图层列表:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
    <item android:drawable="@drawable/image_name_here" />
    <item>
        <shape android:shape="rectangle" android:padding="10dp">
            <corners
                 android:bottomrighTradius="5dp"
                 android:bottomLefTradius="5dp"
                 android:topLefTradius="5dp"
                 android:topRighTradius="5dp"/>
         </shape>
   </item>

</layer-list>

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念