Drawable setDither - 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 setDither method.

This code example shows how to use the following methods:setDither, setFilterBitmap
                view.setImageBitmap(b);
     
                mBitmap = b;
     
                final Drawable drawable = view.getDrawable();
                drawable.setFilterBitmap(true);
                drawable.setDither(true);
 
                view.postInvalidate();
 
                mLoader = null;
            } else { 
               b.recycle(); 
            } 
        } 
 
        void cancel() { 
            mOptions.requestCancelDecode();
            super.cancel(true); 
        } 
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setDither
        return mDrawable.getChangingConfigurations();
    } 
 
    @Override 
    public void setDither(boolean dither) {
        mDrawable.setDither(dither);
    } 
 
    @Override 
    public void setFilterBitmap(boolean filter) {
        mDrawable.setFilterBitmap(filter);
    } 
 
    @Override 
    public void setAlpha(int alpha) {
        mDrawable.setAlpha(alpha);
    } 
 
    @Override 
    public void setColorFilter(ColorFilter cf) {
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setDither
    } 
     
    @Override 
    public void setDither(boolean dither) {
        if (mProxy != null) {
            mProxy.setDither(dither);
        } 
    } 
     
    @Override 
    public void setColorFilter(ColorFilter colorFilter) {
        if (mProxy != null) {
            mProxy.setColorFilter(colorFilter);
        } 
    } 
     
    @Override 
    public void setAlpha(int alpha) {
        if (mProxy != null) {
            mProxy.setAlpha(alpha);
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setAlpha, setBounds, setColorFilter, setDither, setLevel
        final long now = SystemClock.uptimeMillis();
        boolean animating = false;
        if (mCurrDrawable != null) {
            if (mEnterAnimationEnd != 0) {
                if (mEnterAnimationEnd <= now) {
                    mCurrDrawable.setAlpha(mAlpha);
                    mEnterAnimationEnd = 0;
                } else { 
                    int animAlpha = (int) ((mEnterAnimationEnd - now) * 255)
                            / mDrawableContainerState.mEnterFadeDuration;
                    mCurrDrawable.setAlpha((255 - animAlpha) * mAlpha / 255);
                    animating = true;
                } 
            } 
        } else { 
            mEnterAnimationEnd = 0;
        } 
        if (mLastDrawable != null) {
            if (mExitAnimationEnd != 0) {
                if (mExitAnimationEnd <= now) {

6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setDither
    } 
 
    @Override 
    public void setDither(boolean dither) {
        if (mProxy != null) {
            mProxy.setDither(dither);
        } 
    } 
 
    @Override 
    public void setColorFilter(ColorFilter colorFilter) {
        if (mProxy != null) {
            mProxy.setColorFilter(colorFilter);
        } 
    } 
 
    @Override 
    public void setAlpha(int alpha) {
        if (mProxy != null) {
            mProxy.setAlpha(alpha);
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setDither
		return mDrawable.setVisible( visible, restart );
	} 
 
	@Override 
	public void setDither( boolean dither ) {
		mDrawable.setDither( dither );
	} 
 
	@Override 
	public void setColorFilter( int color, Mode mode ) {
		mDrawable.setColorFilter( color, mode );
	} 
 
	@Override 
	public void invalidateSelf() { 
		mDrawable.invalidateSelf();
	} 
 
	@Override 
	public boolean isStateful() { 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setDither, setFilterBitmap
				view.setImageBitmap(b);
 
				bitmap = b;
 
				final Drawable drawable = view.getDrawable();
				drawable.setFilterBitmap(true);
				drawable.setDither(true);
 
				view.postInvalidate();
 
				wallpaperLoader = null;
			} else { 
				b.recycle();
			} 
		} 
 
		void cancel() { 
			options.requestCancelDecode();
			super.cancel(true); 
		} 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setDither
            return mWrapped.getChangingConfigurations();
        } 
 
        @Override 
        public void setDither(boolean dither) {
            mWrapped.setDither(dither);
        } 
 
        @Override 
        public void setFilterBitmap(boolean filter) {
            mWrapped.setFilterBitmap(filter);
        } 
 
        @Override 
        public void setAlpha(int alpha) {
            mWrapped.setAlpha(alpha);
        } 
 
        @Override 
        public void setColorFilter(ColorFilter cf) {
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setDither
            return mWrapped.getChangingConfigurations();
        } 
 
        @Override 
        public void setDither(boolean dither) {
            mWrapped.setDither(dither);
        } 
 
        @Override 
        public void setFilterBitmap(boolean filter) {
            mWrapped.setFilterBitmap(filter);
        } 
 
        @Override 
        public void setAlpha(int alpha) {
            mWrapped.setAlpha(alpha);
        } 
 
        @Override 
        public void setColorFilter(ColorFilter cf) {
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setDither
	public int getChangingConfigurations() { 
		return mCurrDrawable.getChangingConfigurations();
	} 
 
	public void setDither(boolean dither) {
		mCurrDrawable.setDither(dither);
	} 
 
	public void setFilterBitmap(boolean filter) {
		mCurrDrawable.setFilterBitmap(filter);
	} 
 
	public void setAlpha(int alpha) {
		mCurrDrawable.setAlpha(alpha);
	} 
 
	public void setColorFilter(ColorFilter cf) {
		mCurrDrawable.setColorFilter(cf);
	} 
 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java

Related Drawable setDither Questions & Answers:

setDither Method Overview
Set to true to have the drawable dither its colors when drawn to a device with fewer than 8-bits per color component.
See Code Examples for other Android Drawable Methods: