Skip to content

Commit

Permalink
Merge branch 'swipe_to_delete' of https://github.com/Priyansh-Kedia/S…
Browse files Browse the repository at this point in the history
…wipeLibrary into swipe_to_delete
  • Loading branch information
pknotfound committed Oct 24, 2020
2 parents 8539c40 + a6b6a6b commit 0aa4e5f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ In a notes app, if you wish to delete the note from your database, after it is s
adapter.removeItem(adapterPosition)
}
[![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)
> 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)`
[![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)


> 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**.
[![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)


---
Expand Down

0 comments on commit 0aa4e5f

Please sign in to comment.