标签: android
由于canvas.drawText(String text,float x,float y,Paint paint);用它的中间坐标x和y绘制它,有没有办法从点开始绘制它?
答案 0 :(得分:1)
这应该可以解决问题:
Paint paint = new Paint(); paint.setTextAlign(Align.LEFT); canvas.drawText(text,x,y,paint);
(Source)