SwipeStack icon indicating copy to clipboard operation
SwipeStack copied to clipboard

problem in get count

Open Mahdiazadbar opened this issue 7 years ago • 1 comments

hi. great library. i have a problem for getCount of item after swipe and remove item of view!! after remove view count of getCount do not decrease? and when i remove from my list two item of adapter remove. for example if i have 6 item after remove 3 item of my list in swipeRight or left onEmpty method call!!! how can i fix this bug?

Mahdiazadbar avatar Mar 08 '17 07:03 Mahdiazadbar

you need to get itemCount? No, SwipeStack not decrease it, he just work with view. You can get real itemCount with stackAdapter.getItemCount() - swipeStack.getCurrentPosition

D330 avatar Jan 12 '18 14:01 D330