Example usage for android.support.v4.graphics.drawable DrawableCompat setAutoMirrored

List of usage examples for android.support.v4.graphics.drawable DrawableCompat setAutoMirrored

Introduction

In this page you can find the example usage for android.support.v4.graphics.drawable DrawableCompat setAutoMirrored.

Prototype

public static void setAutoMirrored(Drawable drawable, boolean z) 

Source Link

Usage

From source file:android.support.graphics.drawable.VectorDrawableCommon.java

@Override
public void setAutoMirrored(boolean mirrored) {
    // API >= 21 only.
    if (mDelegateDrawable != null) {
        DrawableCompat.setAutoMirrored(mDelegateDrawable, mirrored);

        return;//from   w w w  . j a  v a 2  s .c  om
    }
}

From source file:com.negusoft.greenmatter.drawable.CompoundDrawableWrapper.java

@Override
public void setAutoMirrored(boolean mirrored) {
    for (Drawable d : mSecondaryDrawables)
        DrawableCompat.setAutoMirrored(d, mirrored);
    super.setAutoMirrored(mirrored);
}

From source file:android.support.v7.graphics.drawable.DrawableWrapper.java

@Override
public void setAutoMirrored(boolean mirrored) {
    DrawableCompat.setAutoMirrored(mDrawable, mirrored);
}

From source file:com.github.shareme.gwsmaterialuikit.library.material.drawable.PaddingDrawable.java

@Override
public void setAutoMirrored(boolean mirrored) {
    if (mDrawable != null)
        DrawableCompat.setAutoMirrored(mDrawable, mirrored);
}

From source file:com.albedinsky.android.support.ui.graphics.drawable.DrawableWrapper.java

/**
 */
@Override
public void setAutoMirrored(boolean mirrored) {
    DrawableCompat.setAutoMirrored(mDrawable, mirrored);
}

From source file:codetail.graphics.drawables.LayerDrawable.java

/**
 * Add a new layer to this drawable. The new layer is identified by an id.
 *
 * @param layer      The drawable to add as a layer.
 * @param themeAttrs Theme attributes extracted from the layer.
 * @param id         The id of the new layer.
 * @param left       The left padding of the new layer.
 * @param top        The top padding of the new layer.
 * @param right      The right padding of the new layer.
 * @param bottom     The bottom padding of the new layer.
 *///from w  ww .ja  v  a  2 s. com
ChildDrawable addLayer(Drawable layer, TypedValue[] themeAttrs, int id, int left, int top, int right,
        int bottom) {
    final ChildDrawable childDrawable = new ChildDrawable();
    childDrawable.mId = id;
    childDrawable.mThemeAttrs = themeAttrs;
    childDrawable.mDrawable = layer;
    DrawableCompat.setAutoMirrored(childDrawable.mDrawable, isAutoMirrored());
    childDrawable.mInsetL = left;
    childDrawable.mInsetT = top;
    childDrawable.mInsetR = right;
    childDrawable.mInsetB = bottom;

    addLayer(childDrawable);

    mLayerState.mChildrenChangingConfigurations |= layer.getChangingConfigurations();
    layer.setCallback(this);

    return childDrawable;
}

From source file:codetail.graphics.drawables.LayerDrawable.java

@Override
public void setAutoMirrored(boolean mirrored) {
    mLayerState.mAutoMirrored = mirrored;

    final ChildDrawable[] array = mLayerState.mChildren;
    final int N = mLayerState.mNum;
    for (int i = 0; i < N; i++) {
        DrawableCompat.setAutoMirrored(array[i].mDrawable, mirrored);
    }// w  w w.j a  v a2s.  c om
}