Drawable clearColorFilter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Drawable clearColorFilter method.

This code example shows how to use the following methods:clearColorFilter
		mDrawable.setColorFilter( cf );
	} 
 
	@Override 
	public void clearColorFilter() { 
		mDrawable.clearColorFilter();
	} 
 
	@Override 
	public int getIntrinsicHeight() { 
		return mDrawable.getIntrinsicHeight();
	} 
 
	@Override 
	public int getIntrinsicWidth() { 
		return mDrawable.getIntrinsicWidth();
	} 
 
	@Override 
	public int getMinimumHeight() { 
6
CodeRank
This code example shows how to use the following methods:clearColorFilter
            mWrapped.setColorFilter(color, mode);
        } 
 
        @Override 
        public void clearColorFilter() { 
            mWrapped.clearColorFilter();
        } 
 
        @Override 
        public boolean isStateful() { 
            return mWrapped.isStateful();
        } 
 
        @Override 
        public boolean setState(int[] stateSet) {
            return mWrapped.setState(stateSet);
        } 
 
        @Override 
        public int[] getState() { 
6
CodeRank
This code example shows how to use the following methods:clearColorFilter, draw, getIntrinsicHeight, getIntrinsicWidth, setBounds
    private void drawAddTransitionIcons(Canvas canvas) {
        if (hasSpaceForAddTransitionIcons()) { 
            boolean canPick = canPickTransition();
            if (mMediaItem.getBeginTransition() == null) {
                if (!canPick) {
                    sAddTransitionDrawable.setColorFilter(COLOR_DISABLED, PorterDuff.Mode.DST_OUT);
                } 
                sAddTransitionDrawable.setState(mLeftState);
                sAddTransitionDrawable.setBounds(getPaddingLeft(), getPaddingTop(),
                        sAddTransitionDrawable.getIntrinsicWidth() + getPaddingLeft(),
                        getPaddingTop() + sAddTransitionDrawable.getIntrinsicHeight());
                sAddTransitionDrawable.draw(canvas);
                sAddTransitionDrawable.clearColorFilter();
            } 
 
            if (mMediaItem.getEndTransition() == null) {
                if (!canPick) {
                    sAddTransitionDrawable.setColorFilter(COLOR_DISABLED, PorterDuff.Mode.DST_OUT);
                } 
                sAddTransitionDrawable.setState(mRightState);

6
CodeRank
This code example shows how to use the following methods:clearColorFilter
            mWrapped.setColorFilter(color, mode);
        } 
 
        @Override 
        public void clearColorFilter() { 
            mWrapped.clearColorFilter();
        } 
 
        @Override 
        public boolean isStateful() { 
            return mWrapped.isStateful();
        } 
 
        @Override 
        public boolean setState(int[] stateSet) {
            return mWrapped.setState(stateSet);
        } 
 
        @Override 
        public int[] getState() { 
6
CodeRank
This code example shows how to use the following methods:clearColorFilter
	public void setColorFilter(int color, Mode mode) {
		mCurrDrawable.setColorFilter(color, mode);
	} 
 
	public void clearColorFilter() { 
		mCurrDrawable.clearColorFilter();
	} 
 
	public boolean isStateful() { 
		return true; 
	} 
	 
    @Override 
    public int getIntrinsicWidth() { 
        return mCurrDrawable != null ? mCurrDrawable.getIntrinsicWidth() : -1;
    } 
 
    @Override 
    public int getIntrinsicHeight() { 
        return mCurrDrawable != null ? mCurrDrawable.getIntrinsicHeight() : -1;
6
CodeRank

Related Drawable clearColorFilter Questions & Answers:

clearColorFilter Method Overview
See Code Examples for other Android Drawable Methods: