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);
(来源)