Skip to content

Adding support for onCreateItemViewHolder to create multiple type of viewholder base on row and column #21

Open

Description

@hlongvu

I understand that viewing csv file and supporting dragging required every table cells are the same but it would be great if AdaptiveTableLayout can support multiple type of viewholder in readonly mode. That will make displaying multiple type of data (for each column) with different layouts much more easy.

Activity

  1. cioraneanu commented on Jan 2, 2019

    @cioraneanu

    +1 for this.
    I really need a way to render different layouts for each regular "item" cell. Something similar to what the RecyclerView does by implementing your own:
    public int getItemViewType(int position)

    and passing the the viewType field as a second param to the
    onCreateItemViewHolder method. Or even just pass the row and column values to it.

  2. yarovoiag commented on Jan 4, 2019

    @yarovoiag
    Contributor

    Hi @hlongvu @cioraneanu , thx for using our library.
    We will integrate this feature in the next releases.
    With best regards Cleveroad team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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