Right now I have a funtional swipe left to delete in recyclerview with two layouts(foreground and background). I use itemtouchhelper in the code. However, I would like to have BOTH swipe left and swipe right showing different colors and icons, like in Google Inbox. How can I implement that?
What I want is: swipe rightswipe left
what I have is: only swipe right
the code is just the standard itemtouchhelper.simplecallback with 2 layouts in the xml. And I googled everywhere and only found single swipe option with single icon and single color
Use ItemTouchHelper to Implement the Gmail Like Feature
call the following function after setting the recyclerView
Where Object p is an object of paint
Paint p = new Paint()
Hope this may help you.