Beispiel #1
0
        private void SetupAnimation()
        {
            View cardView = ViewCollection[ViewCollection.Count - 1];

            _cardAnimator = new CardAnimator(
                ViewCollection,
                _color,
                _stackMargin,
                Context.Resources.DisplayMetrics.HeightPixels);

            _cardAnimator.InitLayout();
            DragGestureDetector dd = new DragGestureDetector(Context, new DragListener(this));

            _onTouchListener = new OnTouchListener(this, dd);

            cardView.SetOnTouchListener(_onTouchListener);

            Clickable          = true;
            cardView.Clickable = true;
        }
Beispiel #2
0
 public DiscardAnimationEndListener(CardAnimator outerInstance, Animator.IAnimatorListener al)
 {
     _outerInstance = outerInstance;
     _al            = al;
 }