2013-05-18 35 views
0

嗨,我有应用程序按钮和I设置按钮样式从形状,但是当我使用的图像Android的按钮图像半径

android:src="@drawable/button_background" /> 

我有半径

http://i39.tinypic.com/33vm3gh.png

我SHEP文件

问题
<item android:state_pressed="false"> 
     <layer-list> 
      <item> 
       <bitmap 
        android:src="@drawable/button_background" /> 
      </item> 
      <item> 
       <shape>    
        <gradien 
         android:angle="90" 
        /> 
        <solid 
         android:color="#eeeeee" 
        />   
        <corners 
         android:topRightRadius="0dip" 
         android:topLeftRadius="0dip" 
         android:bottomLeftRadius="5dip" 
         android:bottomRightRadius="5dip" 
        /> 
        <stroke 
         android:width="1px" 
         android:color="#b7b7b7" 
        /> 
       </shape> 
      </item> 
     </layer-list> 
</shape> 

回答

0

将按钮的背景设置为透明或无效

android:background="@null" 

android:background="#00FFFFFF" 
+0

我要像CSS背景图像:网址( '...')边界半径:5像素;但如何适应android应用程序? – Vykintas

0

尝试使用这样的:

android:background="@null" 
+0

我想要css background-image:url('...')border-radius:5px;但如何适应android应用程序? – Vykintas