I am going to develop soccer app, and having following json response.(link)
I have two different class with different names, but with same properties or fields and want to display one same single RecyclerView
.
Here I have worldmatch and world having same fields like matchTime
, startTime
and endTime
. I have created pojo class using jsontopojo plugin.
Here is main things, I want to display worldmatch in position 0 and rest of other position world based on club. You can see more details in picture.
This has to be first tab(world) and similarly to other tab like Europe , Asia with respective similar pattern.
Tab1(World)
---------------position 0 (All match)------------------
|
| 930 1100 1130 and so on ( horizontal recyclerview)
|
-------------------------------------------
---------------position 1(Barcelona)------------------
|
| 1130 1230 1330 1430 and so on ( horizontal recyclerview)
|
-------------------------------------------
---------------position 2(Chelsea)------------------
|
| 1300 1400 1500 and so on ( horizontal recyclerview)
|
-------------------------------------------
.
.
.
so on
(vertical recyclerview)
Details explanation picture view:
I have two Recyclerview Adapter, first one is display clubname and pass the respective data to other recycler view which gonna display horizontal view with respetive matchTime.
Populated the Outer Recyclerview position 0, worldmatch data and it reflect all the others, how do i pass the populated both worldmatch and world data in same recyclerview and how to filter out all the tab.
Display matchTime field only from WorldMatch list in position 0 and World list in below 0.(horizontal recyclerview)
Any one have any idea, which is really helpful for me and highly appreciate any idea behind this. Thanks in advance.