横线:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"android:shape="line" >
<!-- 渐变色 -->
<gradient
android:centerX="5"
android:endColor="#FFFFFF"
android:startColor="#FFFFFF"
android:type="sweep" />
<stroke
android:dashGap="3dp"
android:dashWidth="5dp"
android:width="1dip"
android:color="#A6A6A6" />
</shape>
垂直:
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="90"
android:toDegrees="90" >
<shape android:shape="line" >
<stroke
android:dashGap="3dp"
android:dashWidth="5dp"
android:color="#A6A6A6" />
</shape>
</rotate>