hi have implemented semi circle , draw line in border of semi circle not able draw line in below edges. how draw line in below edges. please give me suggestion. here code draw border:
mrimwidth =40; mcontoursize = 1; innercontour = new rectf(mcirclerectf.left + (mrimwidth / 2.0f) + (mcontoursize / 2.0f), mcirclerectf.top + (mrimwidth / 2.0f) + (mcontoursize / 2.0f), mcirclerectf.right - (mrimwidth / 2.0f) - (mcontoursize / 2.0f), mcirclerectf.bottom - (mrimwidth / 2.0f) - (mcontoursize / 2.0f)); outercontour = new rectf(mcirclerectf.left - (mrimwidth / 2.0f) - (mcontoursize / 2.0f), mcirclerectf.top - (mrimwidth / 2.0f) - (mcontoursize / 2.0f), mcirclerectf.right + (mrimwidth / 2.0f) + (mcontoursize / 2.0f), mcirclerectf.bottom + (mrimwidth / 2.0f) + (mcontoursize / 2.0f)); canvas.drawarcoutercontour 160, 221, false, mpaint); canvas.drawarcinnercontour 160, 221, false, mpaint);
mpaint code is:
mpaint = new paint(); mpaint.setantialias(true); mpaint.setstyle(paint.style.stroke); mpaint.setstrokewidth(10); mpaint.setstrokecap(paint.cap.square); mpaint.setcolor(mcircleprogresscolor);
now image looking below image:
but want image below image:
Comments
Post a Comment