Java Code Examples for android.graphics.drawable.AnimatedVectorDrawable#VectorDrawableAnimatorRT

The following examples show how to use android.graphics.drawable.AnimatedVectorDrawable#VectorDrawableAnimatorRT . 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: RenderNode.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
public void registerVectorDrawableAnimator(
        AnimatedVectorDrawable.VectorDrawableAnimatorRT animatorSet) {
    if (mOwningView == null || mOwningView.mAttachInfo == null) {
        throw new IllegalStateException("Cannot start this animator on a detached view!");
    }
    mOwningView.mAttachInfo.mViewRootImpl.registerVectorDrawableAnimator(animatorSet);
}
 
Example 2
Source File: ThreadedRenderer.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
void registerVectorDrawableAnimator(
    AnimatedVectorDrawable.VectorDrawableAnimatorRT animator) {
    nRegisterVectorDrawableAnimator(mRootNode.mNativeRenderNode,
            animator.getAnimatorNativePtr());
}