daimajia / AndroidSwipeLayout

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

Cannot Open all closed items in the adapter at once. #264

Open r0boto opened 8 years ago

r0boto commented 8 years ago

Hello, I trying to open all items in adapter at same tame on click.

I tried to do programatically by this way:

mAdapter.openItem(0); mAdapter.openItem(1); mAdapter.openItem(2);

But only the last item is opened, same problem with closing.

List listOfOpenedItems = mAdapter.getOpenItems(); for (Integer element : listOfOpenedItems) { Logger.d("Opened position is: "+element.toString()); }

Is possible to open all items at once?

Many thanks for any advice

commonslok commented 8 years ago

i solved this issue mAdapter.setMode(Attributes.Mode.Multiple);

hrsalehi commented 8 years ago

Same here I can't open all Items at once. Even when I open swipe layout programmatically with layout.open() in onCreateViewHolder() some layouts doesn't open.