AndroidSwipeLayout
AndroidSwipeLayout copied to clipboard
Dynamic open / close swipelayout not work with recyclerview.
I face issue of open/close Swype layout
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();
}
Hello, any udpate on this issue ?
This is probably a usage issue. I just got it running with RecyclerView in version 1.2.0