I want to draw a vertical dotted line in xml, using shape
.
I used this example:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<size
android:height="400dp"
android:width="4dp"/>
<stroke
android:color="#000000"
android:dashWidth="100dp"
android:dashGap="10dp" />
</shape>
Then:
<View android:id="@+id/vertical_line"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/dotted_line"
android:layout_marginLeft="27dp"/>
But it doesn't work. How can I do it?