Java Code Examples for android.support.v4.graphics.drawable.DrawableCompat#isAutoMirrored()
The following examples show how to use
android.support.v4.graphics.drawable.DrawableCompat#isAutoMirrored() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VectorDrawableCompat.java From VectorChildFinder with Apache License 2.0 | 5 votes |
@Override public boolean isAutoMirrored() { if (mDelegateDrawable != null) { return DrawableCompat.isAutoMirrored(mDelegateDrawable); } return mVectorState.mAutoMirrored; }
Example 2
Source File: DrawerLayout.java From letv with Apache License 2.0 | 5 votes |
private boolean mirror(Drawable drawable, int layoutDirection) { if (drawable == null || !DrawableCompat.isAutoMirrored(drawable)) { return false; } DrawableCompat.setLayoutDirection(drawable, layoutDirection); return true; }
Example 3
Source File: TranslucentDrawerLayout.java From 920-text-editor-v2 with Apache License 2.0 | 5 votes |
/** * Change the layout direction of the given drawable. * Return true if auto-mirror is supported and drawable's layout direction can be changed. * Otherwise, return false. */ private boolean mirror(Drawable drawable, int layoutDirection) { if (drawable == null || !DrawableCompat.isAutoMirrored(drawable)) { return false; } DrawableCompat.setLayoutDirection(drawable, layoutDirection); return true; }
Example 4
Source File: ActionBarDrawerToggle.java From guideshow with MIT License | 5 votes |
private SlideDrawable(Drawable wrapped) { super(); if (DrawableCompat.isAutoMirrored(wrapped)) { DrawableCompat.setAutoMirrored(this, true); } addLevel(0, 0, wrapped); }
Example 5
Source File: ShadowUtils.java From AndroidUtilCode with Apache License 2.0 | 4 votes |
public boolean isAutoMirrored() { return DrawableCompat.isAutoMirrored(this.mDrawable); }
Example 6
Source File: PaddingDrawable.java From MDPreference with Apache License 2.0 | 4 votes |
@Override public boolean isAutoMirrored() { return mDrawable != null && DrawableCompat.isAutoMirrored(mDrawable); }
Example 7
Source File: DrawableWrapper.java From ticdesign with Apache License 2.0 | 4 votes |
@Override public boolean isAutoMirrored() { return DrawableCompat.isAutoMirrored(mDrawable); }