Android 虚线分割Shape

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line">
     <!-- 显示虚线,破折线的宽度为dashWith,空隙的宽度为dashGap, darkgray -->
    <stroke android:width="1dp" android:color="#A9A9A9"  
             android:dashWidth="2dp" android:dashGap="3dp" /> 
    <size android:height="1dp" />  
</shape>

 

posted @ 2016-08-29 10:03  星辰之力  阅读(2697)  评论(0编辑  收藏  举报