I've a list of following model:
name
categoryName
Now, I've to build a recyclerview that groups all the entities with the same categoryName:
categoryName1
name1
name2
name3
categoryName2
name4
categoryName3
name5
name6
So I have two different row type (different styles). The list is ordered. I don't necessary need the code, but, what's the algorithm to use for the adapter? Can I solve this with only one cycle?
I'd like to avoid adding view to a vertical LinearLayout from code.