I have an object that looks like this:
{"contacts":{
"contactId":324242,
"Name": john,
"products": [
{"id":1,"product":"car"},
{"id":2,"product":"bus"}
}
}
Now what I want to do is make a recycler view that makes me a text that contains the contacts name and then bellows that I want it to show with a different type of text view the product name for each product (meaning create a new text view bellow it for each new product) and after that, it will go again and show the next contacts name and the products name. What I want is to have 2 views inside my recycler view but the problem I have is that I can't display each of the products