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