android stroke描边,去掉左右描边

一般描边开始:

<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
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3