Code example for Transformation

Methods: setTransformationType

0
		super(context, attrs);
		TAP_ANIMATINO_DURATION = ViewConfiguration.getLongPressTimeout();
		this.setWillNotDraw(false);
		if (!isInEditMode()) {
			setStaticTransformationsEnabled(true); 
			mSelectionTransformation = new Transformation();
			mAlphaTransformation = new Transformation();
			mSelectionTransformation.setTransformationType(Transformation.TYPE_MATRIX);
			mAlphaTransformation.setTransformationType(Transformation.TYPE_ALPHA);
		} else { 
			mAlphaTransformation = null;
			mSelectionTransformation = null;
		} 
	} 
 
	@Override 
	protected void onFinishInflate() { 
		super.onFinishInflate(); 
		mThumbnailImageView = (ImageView) findViewById(R.id.thumb);
		this.setFocusable(false);
Connect your IDE to all the code out there  Get Codota for Java