Skip to content

Instantly share code, notes, and snippets.

View rishabh876's full-sized avatar
🏁
Everything Mobile

Rishabh Harit rishabh876

🏁
Everything Mobile
View GitHub Profile
@rishabh876
rishabh876 / SwipeItemTouchHelper.md
Last active August 26, 2022 04:08
SwipeItemTouchHelper

SwipeItemTouchHelper

public class SwipeItemTouchHelper extends ItemTouchHelper.SimpleCallback {

    private Context context;

    private SwipeItemActionListener swipeItemActionListener;
    private ItemTouchHelper itemTouchHelper;
    private SwipeBackgroundView swipeBackgroundView; //View that will be shown behind the item