2

I display my JSON data into a RecyclerView. I have multiple TextView into one item and it works perfectly.

In my data, I need to fetch photos and display them into each item. I have multiple photos for one item. It starts from 6 photos to... many more.

I tried using a RecyclerView inside my first RecyclerView but as you can guess it was a bad idea (bad performance, not the good result expected and so on).

Do you have any other solution or advice that might help, please?

I found a thousand solutions how to display one picture by row but none about multiple pictures into one row.

Lena
  • 511
  • 1
  • 4
  • 19
  • 1
    What's your problem with using Recyclerview inside Recylerview because that is what I would use. Please post some code, your performance issue may be from somewhere else. – LalitaCode Jul 26 '19 at 08:30
  • Kindly post your code. – Sana Jul 26 '19 at 09:02

1 Answers1

3

Create a custom view and add Image views dynamically based on no.of views required. Use this view in the recycler view adapter itemlayout file.

Naveen Kommuri
  • 406
  • 3
  • 14