Code example for ColorMatrixColorFilter

0
	Drawable mDrawable;
	final static int state_pressed = android.R.attr.state_pressed;
 
	/** The white color filter. */ 
	ColorMatrixColorFilter whiteColorFilter = new ColorMatrixColorFilter( new float[] {
		1, 0, 0, 0, 255, 0, 1, 0, 0, 255, 0, 0, 1, 0, 255, 0, 0, 0, 1, 0, } ); 
 
	/** 
	 * Instantiates a new tool icons drawable. 
	 *  
	 * @param res 
	 *           the res 
	 * @param resId 
	 *           the res id 
	 */ 
	public ToolIconsDrawable( Resources res, int resId ) {
		super(); 
		mDrawable = res.getDrawable( resId );
	} 
 
	/*