竖直虚线
直接上代码
竖直虚线drawable
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<stroke
android:width="@dimen/padding_1dp"
android:color="@color/cFF2A32"
android:dashWidth="@dimen/dp_3"
android:dashGap="@dimen/dp_3" />
</shape>
</item>
<item android:left="@dimen/dp_1">
<shape >
<solid android:color="@color/cFEEEE8"/>
</shape>
</item>
</layer-list>
用法
<View
android:id="@+id/vertical_dashed_lines"
android:layout_width="@dimen/dp_2"
android:layout_height="0dp"
android:layout_marginRight="@dimen/padding_16dp"
android:background="@drawable/vertical_dashed_lines"
app:layout_constraintBottom_toBottomOf="@+id/iv_bg"
app:layout_constraintEnd_toStartOf="@+id/tv_to_receive"
app:layout_constraintTop_toTopOf="@+id/iv_bg" />