Canvas drawText 不显示

 
 




public int getFontHeight() {


 FontMetrics fm = mPaint.getFontMetrics();


 return (int) (fm.descent - fm.ascent);
 }


canvas.drawText("hello world", 0, getFontHeight(), new Paint());




你可能感兴趣的:(Canvas drawText 不显示)