Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
canvas.drawText(String text, float x, float y, Paint paint); 以来 xとyの中間座標でこれを描画しますが、ポイントから描画する方法はありますか?
これでうまくいくはずです:
Paint paint = new Paint(); paint.setTextAlign(Align.LEFT); canvas.drawText(text,x,y,paint);
(出典)