Just implemented RecyclerView in my code, replacing ListView.
RecyclerView
ListView
Everything works fine. The data is displayed.
But error messages are
Make sure you set the layout manager for your RecyclerView by:
mRecyclerView.setLayoutManager(new LinearLayoutManager(context));
Instead of LinearLayoutManager, you can use other layout managers too.
LinearLayoutManager