Code example for RectF

Methods: centerXcenterY

0
	 *  
	 * @see android.graphics.drawable.Drawable#draw(android.graphics.Canvas) 
	 */ 
	@Override 
	public void draw( final Canvas canvas ) {
		final RectF rect = new RectF( getBounds() );
		canvas.drawCircle( rect.centerX(), rect.centerY(), mRadius, mPaint );
	} 
 
	/* 
	 * (non-Javadoc) 
	 *  
	 * @see android.graphics.drawable.Drawable#getOpacity() 
	 */ 
	@Override 
	public int getOpacity() { 
		return PixelFormat.OPAQUE;
	} 
 
	/* 
Stop searching for code, let great code find you!  Add Codota to your java IDE