devunwired / recyclerview-playground

Examples of RecyclerView use and custom LayoutManager implementations
MIT License
1.25k stars 270 forks source link

Bug: GridDividerDecoration cannot handle rows of different heights #21

Closed AndroidDeveloperLB closed 8 years ago

AndroidDeveloperLB commented 8 years ago

steps to reproduce:

  1. add this line in onBindViewHolder of SimpleAdapter :

    layoutParams.height=position<4?100:200;
  2. run app.
  3. switch to vertical grid .
  4. scroll down and up.

This is what you get:

device-2015-11-22-015723

How can I solve this?

devunwired commented 8 years ago

Feature added in commit c5a04821f06c38ae796dcfd2ba370098320f5058

AndroidDeveloperLB commented 8 years ago

@devunwired Nice. Thank you !