[英]Android button images radius
Hi i have Button in app and i set button style from shape but when i use images 嗨,我在应用程序中有按钮,我从形状上设置了按钮样式,但是当我使用图像时
android:src="@drawable/button_background" />
i have problem with radius 我半径有问题
http://i39.tinypic.com/33vm3gh.png http://i39.tinypic.com/33vm3gh.png
my shep file 我的文件
<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>
set the button's background to transparent or null 将按钮的背景设置为透明或空
android:background="@null"
or 要么
android:background="#00FFFFFF"
尝试使用此:
android:background="@null"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.