daimajia / AndroidSwipeLayout

The Most Powerful Swipe Layout!
MIT License
12.38k stars 2.67k forks source link

Dynamic open / close swipelayout not work with recyclerview. #445

Open hitesh-dhamshaniya opened 7 years ago

hitesh-dhamshaniya commented 7 years ago

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();
    }
dimspro commented 6 years ago

Hello, any udpate on this issue ?

micaelomota commented 5 years ago

This is probably a usage issue. I just got it running with RecyclerView in version 1.2.0