使用 canvas.drawText(mItemName, x, y, mPaint); //画字是从字的左下角位置开始画的mPaint.setAntiAlias(true); //去掉锯齿this.invalidate(); 更新