Code example for Drawable

Methods: setColorFilter

0
        invalidateSelf();
    } 
 
    @Override 
    public void setColorFilter(ColorFilter cf) {
        mLeftCapDrawable.setColorFilter(cf);
        mBottomAnchorDrawable.setColorFilter(cf);
        mRightCapDrawable.setColorFilter(cf);
        invalidateSelf();
    } 
 
    @Override 
    public int getOpacity() { 
        return Drawable.resolveOpacity(mLeftCapDrawable.getOpacity(),
                Drawable.resolveOpacity(mBottomAnchorDrawable.getOpacity(), mRightCapDrawable.getOpacity()));
    } 
 
    @Override 
    public Drawable mutate() {
        if (!mMutated && super.mutate() == this) {
Stop searching for code, let great code find you!  Add Codota to your java IDE