Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

How can I know the direction when I swipe to dismiss the recycle view item? #94

Open
niray opened this issue May 17, 2016 · 0 comments
Open

Comments

@niray
Copy link

niray commented May 17, 2016

setupSwipeToDismiss(new SwipeDismissRecyclerViewTouchListener.DismissCallbacks() { @Override public boolean canDismiss(int position) { return true; } `

        @Override
        public void onDismiss(RecyclerView recyclerView, int[] reverseSortedPositions) {
            for (int position : reverseSortedPositions) { 
                mAdapter.remove(position);
            }
        }
    });`

I want to know the user swipe direction..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant