From 4fd6baf84592a0f4bcc64045a17110bc27444e50 Mon Sep 17 00:00:00 2001 From: Priyansh Kedia Date: Sun, 25 Oct 2020 00:45:28 +0530 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 99a9f90..c16dd4b 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,12 @@ In a notes app, if you wish to delete the note from your database, after it is s > The fourth parameter is an optional parameter, for the second Color integer, if the user wants two colors in the background, the user can pass both **Parameter 3 and Parameter 4**. +**Java Implementation** +All the optional parameters are null, and thus the simplest implementation is, + + SwipeToDeleteKt.addSwipeToDelete(recyclerView, null, null, null, null); +The optional parameters can be provided if needed. + [![rec-2020-10-24_14.43.59.gif](https://s8.gifyu.com/images/rec-2020-10-24_14.43.59.gif)](https://gifyu.com/image/8Fpk)