Code example for ColorMatrixColorFilter

0
        sGlowColorFocusedPaint.setColor(0xffff8e00);
      //TODO: sGlowColorFocusedPaint.setMaskFilter(TableMaskFilter.CreateClipTable(0, 30)); 
 
        ColorMatrix cm = new ColorMatrix();
        cm.setSaturation(0.2f);
        sDisabledPaint.setColorFilter(new ColorMatrixColorFilter(cm));
        sDisabledPaint.setAlpha(0x88);
    } 
 
    static class BubbleText { 
        private static final int MAX_LINES = 2;
 
        private final TextPaint mTextPaint;
 
        private final RectF mBubbleRect = new RectF();
 
        private final float mTextWidth;
        private final int mLeading;
        private final int mFirstLineY;
        private final int mLineHeight;