AdvancedRecyclerView icon indicating copy to clipboard operation
AdvancedRecyclerView copied to clipboard

I need to pass Model Object instead of Primitive Data Type

Open hassan31 opened this issue 5 years ago • 0 comments

Hi, I'm implementing the sections list. And wondering if I could pass the Model Object too to the Section View. I saw your demo project and you are simply passing the Int, Sample (Custom Model Object). What if I also need to pass the custom model object too in RecyclerSectionAdapter parameters. Currently it is like this class SampleSectionAdapter : RecyclerSectionAdapter<Int, Sample>({ it.rate }) { And I want like this class OrdersAdapter: RecyclerSectionAdapter<Order, Order>({ it }) {

When I try to pass model object then I get the error. pease see attached image. Screen Shot 2020-02-02 at 9 08 57 AM

Could you please help me in this regard to resolve this issue.

Thanks, Hassan

hassan31 avatar Feb 02 '20 14:02 hassan31