Code example for EdgeEffectCompat

0
		this.zoomer = new MyZoomer(getContext());
		this.gestureDetector = new GestureDetectorCompat(context, new MyGestureListener());
		this.scaleGestureDetector = new ScaleGestureDetector(context, new MyScaleListener());
 
		this.edgeEffectTop = new EdgeEffectCompat(context);
		this.edgeEffectBottom = new EdgeEffectCompat(context);
		this.edgeEffectLeft = new EdgeEffectCompat(context);
		this.edgeEffectRight = new EdgeEffectCompat(context);
 
		setWillNotDraw(false);
 
	} 
 
	// ... GET 
 
	private float[] getMatrixScale() { 
		if (this.matrix == null)
			return new float[] { 1f, 1f }; 
		this.matrix.getValues(this.matrixValuesBuffer);
		return new float[] { this.matrixValuesBuffer[Matrix.MSCALE_X], this.matrixValuesBuffer[Matrix.MSCALE_Y] };
Contextual code suggestions in your IDE  Get Codota for Java