Case 1:
Show list of productName in View while sending List<Products> productList in adapter constructor.
Case 2:
Show list of categoryName in View while sending List<Category> categoryList in adapter constructor.
Both the cases must use the same RecyclerView Adapter.
The adapter may have List<Object> objectList. But how can show different property of the different object in the View