I was playing with RecyclerView, and I found that there not much document on how to play with it
I see from the document that the GMail application is using RecyclerView, but in the application it has lots of features that a normal RecyclerView doesnt support:
There is a screenshot from it
https://developer.android.com/training/material/lists-cards.html
Features:
- List item highlight when onTouch
- Swipe left/right to delete
May I know how to implement these features?
I found there is a discussion on how to implement OnClickListener, (thou these solution is quite sluggish, because it constantly checks for the list item region)
But, if you compare it with the Gmail application, it is fast and fluid!
May I know how can I implement the 2 features above? How do they do it? are they using Recyclerview or ListView?
I am sure I could implement those features using ListView, but I have no idea how to implement them using Recyclerview.