To achieve this, You should create 2 different drawable,
1. Horizontal Line: res/drawable/bg_horizontal_dotted_line.xml
2. Vertical Drawable: res/drawable/bg_dotted_line_vertical.xml
-
Now, All you need to do is apply the above vertical XML into the view,
Complete Code: