| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.view; |
| 18 |
|
| 19 |
import android.graphics.RenderNode; |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
public class ViewAnimationHostBridge implements RenderNode.AnimationHost { |
| 27 |
private final View mView; |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
public ViewAnimationHostBridge(View view) { |
| 33 |
mView = view; |
| 34 |
} |
| 35 |
|
| 36 |
@Override |
| 37 |
public void registerAnimatingRenderNode(RenderNode animator) { |
| 38 |
mView.mAttachInfo.mViewRootImpl.registerAnimatingRenderNode(animator); |
| 39 |
} |
| 40 |
|
| 41 |
@Override |
| 42 |
public void registerVectorDrawableAnimator(NativeVectorDrawableAnimator animator) { |
| 43 |
mView.mAttachInfo.mViewRootImpl.registerVectorDrawableAnimator(animator); |
| 44 |
} |
| 45 |
|
| 46 |
@Override |
| 47 |
public boolean isAttached() { |
| 48 |
return mView.mAttachInfo != null; |
| 49 |
} |
| 50 |
} |