Code example for Paint

Methods: setLinearText

0
		 
		canvas.drawPath(mFillPath, mFillPaint);
		 
		if (mText != null) {
			Rect b = getBounds();
			mTextPaint.setLinearText(true);
			canvas.drawText(mText, b.width() / 2f, b.height() / 2f + mTextHalfHeight, mTextPaint);
		} 
	} 
	 
	// PRIVATE ==================================================================================== 
	 
	/** 
	 * Update drawable geometry since parameters changed. 
	 *  
	 * @param pathGeometry 
	 *            {@code true} when drawable stroke and fill should be updated 
	 * @param textGeometry 
	 *            {@code true} when text positioning should be updated ({@code true} of 
	 *            {@code pathGeometry} will do that anyways) 
Experience pair programming with AI  Get Codota for Java