您的位置:首页 > 其它

layer-list 画View两面边框方法

2016-04-22 13:41 260 查看
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:bottom="-2px"
android:right="-2px"
//还也可以有top  left  -2是为了隐藏  -1 效果然并卵
>
<shape
android:shape="rectangle"
>
<stroke
android:width="1px"
android:color="@color/host_bg"
>
</stroke>
<solid
android:color="@color/bg_white"
></solid>//不填充色部分手机直接按照主题色显示。白or黑

</shape>

</item>
</layer-list>


this is all .
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: