标签:
我们经常要用到圆角矩形,这也是现在的流行的样式..但是今天在工作中,遇到要写圆角矩形有边框但无背景色的button,本来想让妹子帮忙切图的,但是不想麻烦妹子,自己撑着,说可以做,结果弄了老半天菜搞定的,现在给大家看看,以后避免这麻烦...(

 )
)
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" >
    <!-- 绿色边框圆角矩形 -->
    <gradient
        android:endColor="#ffffff"
        android:startColor="#ffffff" />
    <solid android:color="#ffffff" />
    <stroke
        android:width="@dimen/dp2"
        android:color="#95d5b2" />
    <corners
        android:bottomLeftRadius="@dimen/dp15"
        android:bottomRightRadius="@dimen/dp15"
        android:topLeftRadius="@dimen/dp15"
        android:topRightRadius="@dimen/dp15" />
</shape><img src="http://img.blog.csdn.net/20150115211054133?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMjMwMTg0MQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />
标签:
原文地址:http://blog.csdn.net/u012301841/article/details/42748153