代码改变世界

[Android Tips] 12. How to Create a Dash Line Shape

2014-09-02 10:51  shaobin0604  阅读(321)  评论(0编辑  收藏  举报
<?xml version="1.0" encoding="utf-8"?>        
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line">        
    <stroke android:width="1dp"
        android:dashWidth="12dp"
        android:dashGap="7dp"
        android:color="@color/semi_transparent_white"/>        
</shape>