コード例 #1
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);
     }
 }
コード例 #2
0
ファイル: CircularReveal.cs プロジェクト: asanyaga/BuildTest
 public RevealFinishedIceCreamSandwich(IRevealAnimator animator, Rect bounds)
 {
     reference = new WeakReference(animator);
     invalidateBounds = bounds;
     LayerType = ((View) animator).LayerType;
 }
コード例 #3
0
ファイル: CircularReveal.cs プロジェクト: asanyaga/BuildTest
 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);
     }
 }
コード例 #4
0
ファイル: CircularReveal.cs プロジェクト: asanyaga/BuildTest
 public RevealFinishedJellyBeanMr2(IRevealAnimator animator, Rect bounds)
 {
     reference = new WeakReference(animator);
     invalidateBounds = bounds;
     LayerType = ((View)animator).LayerType;
 }
コード例 #5
0
 public RevealFinishedJellyBeanMr2(IRevealAnimator animator, Rect bounds)
 {
     reference        = new WeakReference(animator);
     invalidateBounds = bounds;
     LayerType        = ((View)animator).LayerType;
 }
コード例 #6
0
 public RevealFinishedIceCreamSandwich(IRevealAnimator animator, Rect bounds)
 {
     reference        = new WeakReference(animator);
     invalidateBounds = bounds;
     LayerType        = ((View)animator).LayerType;
 }