Java Code Examples for android.support.v4.graphics.drawable.DrawableCompat#jumpToCurrentState()
The following examples show how to use
android.support.v4.graphics.drawable.DrawableCompat#jumpToCurrentState() .
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: VectorDrawableCommon.java From VectorChildFinder with Apache License 2.0 | 5 votes |
@Override public void jumpToCurrentState() { if (mDelegateDrawable != null) { DrawableCompat.jumpToCurrentState(mDelegateDrawable); return; } }
Example 2
Source File: MediaRouteButton.java From cwac-mediarouter with Apache License 2.0 | 5 votes |
public void jumpDrawablesToCurrentState() { // We can't call super to handle the background so we do it ourselves. //super.jumpDrawablesToCurrentState(); if (getBackground() != null) { DrawableCompat.jumpToCurrentState(getBackground()); } // Handle our own remote indicator. if (mRemoteIndicator != null) { DrawableCompat.jumpToCurrentState(mRemoteIndicator); } }
Example 3
Source File: ShadowUtils.java From AndroidUtilCode with Apache License 2.0 | 4 votes |
public void jumpToCurrentState() { DrawableCompat.jumpToCurrentState(this.mDrawable); }
Example 4
Source File: PaddingDrawable.java From MDPreference with Apache License 2.0 | 4 votes |
public void jumpToCurrentState() { if(mDrawable != null) DrawableCompat.jumpToCurrentState(mDrawable); }
Example 5
Source File: DrawableWrapper.java From ticdesign with Apache License 2.0 | 4 votes |
public void jumpToCurrentState() { DrawableCompat.jumpToCurrentState(mDrawable); }