Skip to content

Support for databinding in list view items #34

@anas-ambri

Description

@anas-ambri

First off, thanks for this library.

I was wondering what would be the best way to add support for databinding when using an ItemViewHolder with a recyclerview (or listview). I am thinking either making the onCreateViewHolder abstract, and creating two base classes, depending on whether one is using the databinding or not. The problem with this solution is that it would double the number of classes one can subclass.

What about adding a flag to the LayoutId annotation set to true when using databinding, and is false by default?

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions