Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Aug 16, 2015
1 parent 9c77c4a commit 5c5f97b
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions XamarinItemTouchHelper.Sample/RecyclerListAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c5f97b

Please sign in to comment.