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; }
public MyGestureListener(DragGestureDetector outerInstance) { _outerInstance = outerInstance; }
public OnTouchListener(CardStack outerInstance, DragGestureDetector dd) { _outerInstance = outerInstance; _dd = dd; }