1
2
3
4
5
6
7
<?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>

本文转自william_xu 51CTO博客,原文链接:http://blog.51cto.com/williamx/1202406,如需转载请自行联系原作者