public override void ClearView(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) { base.ClearView(recyclerView, viewHolder); if (viewHolder is IItemTouchHelperViewHolder) { // Tell the view holder it's time to restore the idle state IItemTouchHelperViewHolder itemViewHolder = (IItemTouchHelperViewHolder)viewHolder; itemViewHolder.OnItemClear(); } }
public override void ClearView(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) { base.ClearView(recyclerView, viewHolder); viewHolder.ItemView.Alpha = ALPHA_FULL; if (viewHolder is IItemTouchHelperViewHolder) { IItemTouchHelperViewHolder itemViewHolder = (IItemTouchHelperViewHolder)viewHolder; itemViewHolder.OnItemClear(); } }