android 使用shape 画虚线

来源:互联网 发布:linux 源码 mysql 编辑:程序博客网 时间:2024/06/05 05:13
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"    android:shape="rectangle" >    <!-- 显示虚线,破折线的宽度为dashWith,空隙的宽度为dashGap, darkgray -->    <stroke        android:dashGap="3dp"        android:dashWidth="8dp"        android:width="2dp"        android:color="@color/red" /></shape>
0 0
原创粉丝点击