declex icon indicating copy to clipboard operation
declex copied to clipboard

Implement multiple view supports for AdapterViews and RecyclerViews using AdapterDelegates

Open smaugho opened this issue 6 years ago • 0 comments

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.

smaugho avatar Jun 21 '18 14:06 smaugho