title: How to get View in RecyclerView.Adapter for Snackbar?
body: <p>I am implementing <strong>Swipe</strong> and Drag in <code>RecyclerView</code> through the help of this <a href="http://medium.com/@ipaulpro/drag-and-swipe-with-recyclerview-b9456d2b1aaf" rel="noreferrer">article</a>. On removing the item I want to show a <code>SnackBar</code> but showing <code>SnackBar</code>  needs View.  I don't know how to get <code>View</code> inside the function of a <code>RecyclerAdapter</code>.</p>
  
  <p><strong>My Code:</strong></p>
  
  <pre><code>public void onItemDismiss(int position) {
          notes.remove(position);
          notifyItemRemoved(position);
          /* Show SnackBar */
      }
  </code></pre>
  
  <p>Edit: My question is different from <a href="https://stackoverflow.com/questions/27293960/swipe-to-dismiss-for-recyclerview">this question</a>. I am not having any problem in implementing SwipetoDismiss.I have successfully implemented it. But I want to show a SnackBar so that user can be notfied and Undo. I am having problem in showing SnackBar not in implementing onSwiped(). </p>