android - Increase stroke width of line drawn using PathDashPathEffect -


enter image description here

last line in image drawn using pathdashpatheffect. used following code draw line.

mpaint = new paint();         mpaint.setantialias(true);         mpaint.setdither(true);         mpaint.setcolor(color);         //      mpaint.setalpha(120);         mpaint.setstyle(paint.style.stroke);         mpaint.setstrokejoin(paint.join.round);         mpaint.setstrokecap(paint.cap.round);         mpaint.setstrokewidth(6.0f);          cornerpatheffect = new cornerpatheffect(10);         pathdashpath = new pathdashpatheffect(makepathdash(), 10, 3,                 pathdashpatheffect.style.morph);         patheffect = new composepatheffect(cornerpatheffect, pathdashpath);         mpaint.setpatheffect(pathdashpath);   private path makepathdash() {         path p = new path();         p.moveto(-6, 9/2);         p.lineto(6,9/2);         p.lineto(6,9/2-1);         p.lineto(-6, 9/2-1);         p.close();         p.moveto(-6, -(9/2));         p.lineto(6,-(9/2));         p.lineto(6, -(9/2-1));         p.lineto(-6, -(9/2-1));         return p;     } 

is there way increase stroke width of both lines. information, setstrokewidth method doesn't pathdashpatheffect. please me out?

i don't know if still need answer,

yes have change coordinates this:

private path makepathdash() {         path p = new path();         p.moveto(-6, 9/2);         p.lineto(6,9/2);         p.lineto(6,9/2-2);         p.lineto(-6, 9/2-2);         p.close();         p.moveto(-6, -(9/2));         p.lineto(6,-(9/2));         p.lineto(6, -(9/2-2));         p.lineto(-6, -(9/2-2));         return p;     } 

and change (-2) (-3) have thicker ...