Code example for EmbossMaskFilter

Methods: setMaskFilter

0
		/* 
		 * Trick for inner shadow, see here: 
		 * http://wiresareobsolete.com/wordpress/2012/04/textview-inner-shadows/ 
		 */ 
		float[] direction = new float[] { 0f, -1.0f, 0.5f };
		MaskFilter filter = new EmbossMaskFilter(direction, 0.8f, 15f, 1f);
		textView.getPaint().setMaskFilter(filter);
	} 
 
}