0

enter image description here

I am using FirebaseDatabase in my application. I need to set data in RecyclerView.The key Om Namah Shivay has two nested keys Dinner and Lunch under it.I need to set data in Recyclerview such that it will have two rows and contain Dinner and Lunch Data as separate entries in RecyclerView.
How to parse this nested JSON and set data ?

Satyam Gondhale
  • 1,415
  • 1
  • 16
  • 43
  • 1
    Possible duplicate of [How to create RecyclerView with multiple view type?](https://stackoverflow.com/questions/26245139/how-to-create-recyclerview-with-multiple-view-type) – Rajen Raiyarela Feb 26 '19 at 13:27
  • **[This](https://stackoverflow.com/questions/49383687/how-can-i-retrieve-data-from-firebase-to-my-adapter/49384849)** is a recommended way in which you can retrieve data from a Firebase Realtime database and display it in a `RecyclerView` using `FirebaseRecyclerAdapter`. – Alex Mamo Feb 26 '19 at 14:17

0 Answers0