I have a dotted line separator
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<!--
#17b851 #C7B299
-->
<stroke
android:color="#9e9c85"
android:dashWidth="10px"
android:dashGap="10px"
/>
</shape>
Right now its barely visible. How can I make it thick . I tried giving android:height="2px" & android:dashHeight="5px" but it didnt work.
You can use stroke width,
snapshot
Stroke WIDTH must be smaller than the size HEIGHT.
(Stroke width is the width of the line. Size height is the height of the drawable. When drawn, the line is centered in the drawable. If size height <=stroke width, the line won't show up.)
dottedline.xml:
the layout xml:
use like this it is use full And THIS DOTTED LINE IN ANDROID
EDIT :
Here is Answerin xml file use this
NOTE
: Note: With out this line in Higher versions not working android:layerType="software"you can define a line like
and use it in your view as