static Animator.IAnimatorListener CreateRevealFinishedListener(IRevealAnimator target, Rect bounds, int api) { if (api >= 18) { return(new RevealFinishedJellyBeanMr2(target, bounds)); } else if (api >= 14) { return(new RevealFinishedIceCreamSandwich(target, bounds)); } else { throw new Exception("I don't support API version " + api); } }
public RevealFinishedIceCreamSandwich(IRevealAnimator animator, Rect bounds) { reference = new WeakReference(animator); invalidateBounds = bounds; LayerType = ((View) animator).LayerType; }
static Animator.IAnimatorListener CreateRevealFinishedListener(IRevealAnimator target, Rect bounds, int api) { if (api >= 18) { return new RevealFinishedJellyBeanMr2(target, bounds); } else if (api >= 14) { return new RevealFinishedIceCreamSandwich(target, bounds); } else { throw new Exception("I don't support API version " + api); } }
public RevealFinishedJellyBeanMr2(IRevealAnimator animator, Rect bounds) { reference = new WeakReference(animator); invalidateBounds = bounds; LayerType = ((View)animator).LayerType; }
public RevealFinishedIceCreamSandwich(IRevealAnimator animator, Rect bounds) { reference = new WeakReference(animator); invalidateBounds = bounds; LayerType = ((View)animator).LayerType; }