Code example for Matrix

Methods: equals

0
                matrix = null;
            } 
         
            // don't invalidate unless we're actually changing our matrix 
            if (matrix == null && !super.getImageMatrix().isIdentity() ||
                    matrix != null && !super.getImageMatrix().equals(matrix)) {
//ALPS00126955 BEGIN 
                //when we invalidate,call super.setImageMatrix(),not set super's matrix ourselves. 
                //super.getImageMatrix().set(matrix); 
                setImageMatrix(matrix);
//ALPS00126955 END 
            } 
        } 
    } 
//Gipi Add - E 
 
    @Override 
    protected void onLayout(boolean changed, int left, int top,
                            int right, int bottom) {
        super.onLayout(changed, left, top, right, bottom);
        mThisWidth = right - left;