Code example for Matrix

Methods: postScale, reset, setTranslate

    // set up the scaling matrix, so the width is scaled and the height is fixed if non-default-height in theme (i.e. honeybread) 
    // should be toggled to private (or inlined at constructor), once StatusBarService.updateResources properly handles theme change 
    public void updateMatrix() { 
        mMatrix.setTranslate(0, 0);
        float scaleFactor = getHeight() / (float)(mMiniIconCache[0].getHeight());
        mMatrix.postScale(mWidthPx, scaleFactor);