From 5c5f97b292313f87e921d627e9a9e5ceddf39950 Mon Sep 17 00:00:00 2001 From: Martijn van Dijk Date: Sun, 16 Aug 2015 22:15:01 +0200 Subject: [PATCH] Cleanup --- .../RecyclerListAdapter.cs | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/XamarinItemTouchHelper.Sample/RecyclerListAdapter.cs b/XamarinItemTouchHelper.Sample/RecyclerListAdapter.cs index c9d73c6..ef98fc3 100644 --- a/XamarinItemTouchHelper.Sample/RecyclerListAdapter.cs +++ b/XamarinItemTouchHelper.Sample/RecyclerListAdapter.cs @@ -42,30 +42,6 @@ public override void OnBindViewHolder (RecyclerView.ViewHolder holder, int posit itemHolder.textView.Text = mItems.ElementAt(position); itemHolder.handleView.SetOnTouchListener (new TouchListenerHelper(itemHolder, mDragStartListener)); - - /*itemHolder.handleView.Touch += (object sender, View.TouchEventArgs e) => { - if (MotionEventCompat.GetActionMasked(e) == MotionEventActions.Down) { - mDragStartListener.OnStartDrag(holder); - } - };*/ - - - // Start a drag whenever the handle view it touched - /*holder.handleView.setOnTouchListener(new View.OnTouchListener() { - @Override - public boolean onTouch(View v, MotionEvent event) { - if (MotionEventCompat.getActionMasked(event) == MotionEvent.ACTION_DOWN) { - mDragStartListener.onStartDrag(holder); - } - return false; - } - });*/ - - - /* var itemHolder = (ItemViewHolder)holder; - - itemHolder.textView.Text = mItems.ElementAt(position); - itemHolder.handleView.SetOnTouchListener (new TouchListenerHelper(itemHolder, mDragStartListener));*/ } public void OnItemDismiss (int position)