Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.
This repository was archived by the owner on May 4, 2022. It is now read-only.

Implement multiple view supports for AdapterViews and RecyclerViews using AdapterDelegates #243

@smaugho

Description

@smaugho

AdapterDelegates https://github.com/sockeqwe/AdapterDelegates is an amazing approach to reduce the BoilerPlate related with Adapters, and to support different type of views depending of different Models. It would be great if Declex could support on its Lists to this library, to support multiple models, for instance:

@Populate
List<Object> someObjectList = new LinkedList();

@AfterViews
void afterCreate() {
   someObjectList.add(new Cat());
   someObjectList.add(new Mouse());
   .....
}

So the list could have different classes, the layout should specify somehow which layouts are supported, and DecleX should "inject" which layout to use with which model.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions