0

My requirement is to draw text in a curved path and need to apply some curved background for the curved text as shown in the image enter image description here

So far I have done drawing text as a curved path as per the below code:

    public GraphicsView(MainActivity mainActivity) {
    super(getApplicationContext());
    circle = new Path();
    circle.addCircle(430, 850, 150, Path.Direction.CW);

    tPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    tPaint.setStyle(Paint.Style.FILL_AND_STROKE);
    tPaint.setColor(Color.BLACK);
    tPaint.setTextSize(50);
}
@Override
protected void onDraw(Canvas canvas) {
    canvas.drawTextOnPath(QUOTE, circle, 480, 0, tPaint);
}

Now my question is how to achieve the background for the curved text as per the attached image.

Nitz
  • 1

0 Answers0