Skip to content

Commit 0aa4e5f

Browse files
committed
Merge branch 'swipe_to_delete' of https://github.com/Priyansh-Kedia/SwipeLibrary into swipe_to_delete
2 parents 8539c40 + a6b6a6b commit 0aa4e5f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ In a notes app, if you wish to delete the note from your database, after it is s
3131
adapter.removeItem(adapterPosition)
3232
}
3333
34-
[![rec-2020-10-24_00.08.27.gif](https://s8.gifyu.com/images/rec-2020-10-24_00.08.27.gif)](https://gifyu.com/image/8jlD)
34+
> The third parameter is an optional parameter, for the Color integer, if the user wants a color in the background when the view is swiped out. This is how the user can pass the Color int as the parameter, `ContextCompat.getColor(this, R.color.colorAccent)`
35+
36+
[![rec-2020-10-24_14.38.15.gif](https://s8.gifyu.com/images/rec-2020-10-24_14.38.15.gif)](https://gifyu.com/image/8FMg)
37+
38+
39+
> 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**.
40+
41+
[![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)
3542

3643

3744
---

0 commit comments

Comments
 (0)