android stroke描边,去掉左右描边

时间:2015-10-07 19:05:09   收藏:0   阅读:3681

一般描边开始:

<shape xmlns:android="http://schemas.android.com/apk/res/android">
        
	<stroke android:width="1dp" android:color="@color/line" /> 
</shape>



去掉左右描边:


<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:right="-2dp"
        android:left="-2dp">
        <shape>
            <solid android:color="@android:color/transparent"/>
            <stroke
                android:width="1dp"
                android:color="@color/line"/>
        </shape>
    </item>

</layer-list>




原文:http://my.oschina.net/gabriel1215/blog/513958

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!