How to bind web data with fixed and recycling items

时间:2017-08-05 10:41:26

标签: java android android-recyclerview adapter android-viewholder

So I have an arraylist of object coming via requests with json..! I got the data using the model class.

I want the data to bind with this layout (see the pic), now the first 3 objects from the model class must bind with 1,2 and 3 respectively and the rest meaning the fourth object and beyond should bind with 4 and keeps recycling till it ends..!

basically I want 1,2 and 3 to be fixed and the 4 to be recycled..!

enter image description here

I thought of doing 2 requests, one for the fixed widgets and the second for 4 with a recyclerview starting with index 3, but hitting two identical requests isn't a good practice I guess..

0 个答案:

没有答案