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);
     }
 }
Beispiel #2
0
 public RevealFinishedIceCreamSandwich(IRevealAnimator animator, Rect bounds)
 {
     reference = new WeakReference(animator);
     invalidateBounds = bounds;
     LayerType = ((View) animator).LayerType;
 }
Beispiel #3
0
 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);
     }
 }
Beispiel #4
0
 public RevealFinishedJellyBeanMr2(IRevealAnimator animator, Rect bounds)
 {
     reference = new WeakReference(animator);
     invalidateBounds = bounds;
     LayerType = ((View)animator).LayerType;
 }
 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;
 }