I am following this tutorial Item touch helper example (well actually just the item touch helper part and that too because I want the red background with the delete icon seen when swiping). But I have two different view types in my recyclerview. How would I go about implementing it? I am stuck on this line
final View foregroundView = ((CartListAdapter.MyViewHolder) viewHolder).viewForeground;
in the RecyclerItemTouchHelper.java on the onChildDraw method