public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
if (holder instanceof ViewHolder) {
if (productItem.isSelected())
swipeLayout.open(true);
else
swipeLayout.close(true)
}
public void toggleDeleteOption(boolean isEditMode) {
for (int i = 0; i < mProductItemsArrayList.size(); i++) {
mProductItemsArrayList.get(i).setSelected(isEditMode);
}
notifyDataSetChanged();
}
I face issue of open/close Swype layout