leanback/src/main/java/androidx/leanback/graphics/ColorFilterDimmer.java
public void applyFilterToView(View view) {
        if (mFilter != null) {
            view.setLayerType(View.LAYER_TYPE_HARDWARE, mPaint);
        } else {
            view.setLayerType(View.LAYER_TYPE_NONE, null);
        }
        // FIXME: Current framework has bug that not triggering invalidate when change layer
        // paint.  Will add conditional sdk version check once bug is fixed in released
        // framework.
        view.invalidate();
    }
/**
     * Apply current the ColorFilter to a View. This method will set the
     * hardware layer of the view when applying a filter, and remove it when not
     * applying a filter.
     *
     * @param view The View to apply the ColorFilter to.
     */
Apply current the ColorFilter to a View. This method will set the
hardware layer of the view when applying a filter, and remove it when not
applying a filter.

@param view The View to apply the ColorFilter to.
Apply current the ColorFilter to a View . This method will set the hardware layer of the view when applying a filter and remove it when not applying a filter . @param view The View to apply the ColorFilter to .
public void applyFilterToView(View view) {
        if (mFilter != null) {
            view.setLayerType(View.LAYER_TYPE_HARDWARE, mPaint);
        } else {
            view.setLayerType(View.LAYER_TYPE_NONE, null);
        }
        view.invalidate();
    }
public void applyFilterToView ( View view ) { if ( mFilter != null ) { view . setLayerType ( View . LAYER_TYPE_HARDWARE , mPaint ) ; } else { view . setLayerType ( View . LAYER_TYPE_NONE , null ) ; } view . invalidate ( ) ; }
Apply current the ColorFilter to a View.
Apply current the ColorFilter to a View .
// FIXME: Current framework has bug that not triggering invalidate when change layer // paint.  Will add conditional sdk version check once bug is fixed in released // framework.