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

This code example shows how to use the following methods:getChangingConfigurations, setVisible
        public final int addChild(Drawable dr) {
            final int pos = mNumChildren;
            if (pos >= mDrawables.length) {
                growArray(pos, pos + 10);
            } 
            dr.setVisible(false, true);
            dr.setCallback(mOwner);
            mDrawables[pos] = dr;
            mNumChildren++;
            mChildrenChangingConfigurations |= dr.getChangingConfigurations();
            mHaveOpacity = false;
            mHaveStateful = false;
            mConstantPadding = null;
            mPaddingChecked = false;
            mComputedConstantSize = false;
            return pos;
        } 
 
        public synchronized boolean canConstantState() { 
            if (!mCheckedConstantState) {
7
CodeRank
This code example shows how to use the following methods:getChangingConfigurations
        mDrawable.setChangingConfigurations(configs);
    } 
 
    @Override 
    public int getChangingConfigurations() { 
        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) {
6
CodeRank
This code example shows how to use the following methods:getChangingConfigurations
 
    @Override 
    public int getChangingConfigurations() { 
        //@formatter:off 
        return super.getChangingConfigurations() 
                | mLeftCapDrawable.getChangingConfigurations()
                | mBottomAnchorDrawable.getChangingConfigurations()
                | mRightCapDrawable.getChangingConfigurations();
        //@formatter:on 
    } 
 
    private void updateBounds() { 
 
        // The anchor offset may be out of range. Let's clamp it to the 
        // authorized set of values. 
        final int anchorOffset;
        switch (mAnchorOffset) {
            case ANCHOR_POSITION_CENTER:
                anchorOffset = getBounds().width() / 2;
                break; 
6
CodeRank
This code example shows how to use the following methods:getChangingConfigurations
            mWrapped.setChangingConfigurations(configs);
        } 
 
        @Override 
        public int getChangingConfigurations() { 
            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) {
5
CodeRank
This code example shows how to use the following methods:getChangingConfigurations
            mWrapped.setChangingConfigurations(configs);
        } 
 
        @Override 
        public int getChangingConfigurations() { 
            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) {
5
CodeRank
This code example shows how to use the following methods:getChangingConfigurations
	public void setChangingConfigurations(int configs) {
		mCurrDrawable.setChangingConfigurations(configs);
	} 
 
	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);
	} 
 
5
CodeRank
This code example shows how to use the following methods:getChangingConfigurations, setVisible
        public final int addChild(Drawable dr) {
            final int pos = mNumChildren;
            if (pos >= mDrawables.length) {
                growArray(pos, pos + 10);
            } 
            dr.setVisible(false, true);
            dr.setCallback(mOwner);
            mDrawables[pos] = dr;
            mNumChildren++;
            mChildrenChangingConfigurations |= dr.getChangingConfigurations();
            mHaveOpacity = false;
            mHaveStateful = false;
            mConstantPadding = null;
            mPaddingChecked = false;
            mComputedConstantSize = false;
            return pos;
        } 
 
        public synchronized boolean canConstantState() { 
            if (!mCheckedConstantState) {
5
CodeRank
getChangingConfigurations Method Overview
Return a mask of the configuration parameters for which this drawable may change, requiring that it be re-created.
See Code Examples for other Android Drawable Methods: