Well; drawing a circle is very simple, inside your onDraw() method add this line
canvas.drawCircle(cX, cY, radius, paint);
Just specify the x and y values โโof the center point and the radius and the drawing object.
And you can go behind the pins around the corner, for example, you want the pin to be at an angle of 30 degrees; with a simple trigonometric calculation, your x and y values โโcould be like this:
pX = mX + radius * Math.cos(Math.toRadians(30)); pY = mY + radius * Math.sin(Math.toRadians(30));
Thus, you can draw your output with these values โโof x and y, respectively, also the degree can be changed.
Onur A.
source share