0

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

S_i_l_e_n_t C_o_d_e_r
  • 2,179
  • 2
  • 7
  • 21
Fens
  • 1
  • Does this answer your question? [How to create RecyclerView with multiple view types](https://stackoverflow.com/questions/26245139/how-to-create-recyclerview-with-multiple-view-types) – dominicoder Dec 07 '21 at 07:42

0 Answers0