Code example for ColorMatrix

Methods: setSaturation

0
     * This is called by the colorizing animator. It sets a saturation factor that is then 
     * passed onto a filter on the picture's drawable. 
     * @param value 
     */ 
    public void setSaturation(float value) {
        colorizerMatrix.setSaturation(value);
        ColorMatrixColorFilter colorizerFilter = new ColorMatrixColorFilter(colorizerMatrix);
        mBitmapDrawable.setColorFilter(colorizerFilter);
    } 
     
    @Override 
    public void finish() { 
        super.finish(); 
         
        // override transitions to skip the standard window animations 
        overridePendingTransition(0, 0);
    } 
}