airbnb / epoxy

Epoxy is an Android library for building complex screens in a RecyclerView
https://goo.gl/eIK82p
Apache License 2.0
8.46k stars 730 forks source link

Adding option to provide span size for compose epoxy interop #1322

Closed pranayairan closed 1 year ago

pranayairan commented 1 year ago

Currently there is no option to provide span size to compose epoxy interop. This creates issues when the default layout manager is grid but you want to override the epoxy model behavior at runtime to change the span size. By default the span size is always set to 1 if not overridden.

I added a sample fragment showing how to use the new changes.

without_override with_override

pranayairan commented 1 year ago

@elihart @pmecho can you review.

pranayairan commented 1 year ago

This change is not required any more, we can use changes introduced in this PR to get epoxy models and customize there behavior https://github.com/airbnb/epoxy/pull/1315