Code example for Matrix

Methods: equals, isIdentity, set

0
		if (m != null && m.isIdentity()) {
			m = null;
		} 
 
		// don't invalidate unless we're actually changing our matrix 
		if (m == null && !this.mMatrix.isIdentity() || m != null && !this.mMatrix.equals(m)) {
			this.mMatrix.set(m);
			invalidate();
		} 
	} 
 
	// Sets the bitmap for the image and resets the base 
	public void setImageBitmap(final Bitmap bitmap) {
		final int viewWidth = getWidth();
		 
		if( Build.VERSION.SDK_INT >=  Build.VERSION_CODES.HONEYCOMB && bitmap!=null && bitmap.getHeight()>1800 )
			setLayerType(View.LAYER_TYPE_SOFTWARE, null);
 
		if (viewWidth <= 0)  {
			mOnLayoutRunnable = new Runnable() {
				public void run() {