首页 > 移动平台 > 详细

android stroke描边,去掉左右描边

时间:2015-10-07 19:05:09      阅读:3679      评论:0      收藏:0      [点我收藏+]

一般描边开始:

<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>




android stroke描边,去掉左右描边

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!