I am trying to implement CardView
in a list using RecyclerView.Adapter
. Creating cards in a list was pretty straightforward using RecyvlerView.Adapter. I am using parse.com
as my back end so queries for cards data are made using its APIs.
Now I want to add pagination to this list. If I use Parse's ParseQueryAdapter
, I can get built in pagination from that API. But then I would have to ditch RecyclerView.Adapter
(or not?) and fall back to old BaseAdapter method. However, I don't want to do that and work with this new RecyclerView.Adapter
provided by Android (because of the efficiency it promises).
My question: What is the better approach?
- Use
ParseQueryAdapter
with oldBaseAdapter
method - Use
RecyclerView.Adapter
with normal data fetch method and write my own pagination