Sectioned Recyclerview
I'm trying to implement a recyclerview with sections and subheaders. I found a nice class by Gabriele Mariotti on Github but I'm having some issues implementing it. Basically when
Solution 1:
Figured out the problem. Looks like the position was off because inside the onBindViewHolder I was using the following line:
finalint position = holder.getAdapterPosition();
Once I ignored that and use the position that function returns instead it was all good.
Post a Comment for "Sectioned Recyclerview"