Code example for BlurMaskFilter

0
	 *           the blur_size 
	 */ 
	public void update( float radius, int blur_size ) {
		mOriginalRadius = radius;
		if ( blur_size > 0 )
			mPaint.setMaskFilter( new BlurMaskFilter( blur_size, Blur.NORMAL ) );
		else 
			mPaint.setMaskFilter( null );
		invalidateSelf(); 
	} 
 
	/* 
	 * (non-Javadoc) 
	 *  
	 * @see android.graphics.drawable.Drawable#draw(android.graphics.Canvas) 
	 */ 
	@Override 
	public void draw( Canvas canvas ) {
		canvas.drawCircle( centerX, centerY + mShadowOffset, mRadius, mShadowPaint );
		canvas.drawCircle( centerX, centerY, mRadius, mPaint );
Contextual code suggestions in your IDE  Get Codota for Java