title: how to rotate text using canvas in Android
body: <p>i was draw a pie chart using canvas in android and using the below code i draw a text on each slice of that pie chart (draw arc on path), now i want to draw the text length wise i.e. from center to end of the each slice,so how to rotate the arc using start and sweep angle.  </p>
  
  <pre><code>p.addArc(mEventsRect, fStartAngle, fSweepAngle);
  mBgPaints.setColor(iTextColor);
  canvas.drawTextOnPath(sTextValue, p, fHOffSet, fVOffSet, mBgPaints);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Dlf4J.png" alt="enter image description here"></p>