0

I want to draw a circle and a pointer which moves along the path. I am able to write text properly on the path. But on the pointer the text gets truncated/overlapped. Tried increasing the textSize and the spanSize with no gain. Below is the code.

        canvas.drawPath(mCirclePonterPath, mPointerPaint);

        numberPaint.setColor(Color.parseColor("#ffffff"));
        numberPaint.setAntiAlias(true);
        numberPaint.setStyle(Paint.Style.STROKE);
        numberPaint.setTextAlign(Paint.Align.LEFT);
        numberPaint.setTextSize(65f);

        canvas.drawTextOnPath("10",mCirclePonterPath,0,0,numberPaint);

Attached is the image for reference.

The pointer is the black circle where I want to display the number 10

Adil Soomro
  • 37,609
  • 9
  • 103
  • 153
Sahana Prabhakar
  • 581
  • 1
  • 8
  • 21
  • Are you using any jQuery plugin or your own code ? Have you tried http://roundsliderui.com/, which is a jQuery plugin with lot of customization options. It maybe suitable for your requirement... – Soundar Jul 25 '16 at 07:20
  • I need to do an android native app. How do I use the plugin? – Sahana Prabhakar Jul 25 '16 at 09:48
  • For native app we can't use this.. For hybrid app only we can use this.. – Soundar Jul 25 '16 at 18:33

0 Answers0