Show different views in recyclerview adapter on the comparison of two lists
I am having a scenario in which I want to show two different items in one adapter.
Here is a scenario,
I have two lists on which I want to make a comparison, one list which is coming back end and one is coming from my local room database. Basically, I need to list the items coming from back-end, in these items which exist in my database will have different view in adapter and and if the item coming from backend does not exist in my database will have different views.
If I'll make comparison...