AdaptiveTableLayout icon indicating copy to clipboard operation
AdaptiveTableLayout copied to clipboard

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

Open hlongvu opened this issue 8 years ago • 2 comments

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.

hlongvu avatar Dec 16 '17 03:12 hlongvu

+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.

cioraneanu avatar Jan 02 '19 19:01 cioraneanu

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

yarovoiag avatar Jan 04 '19 10:01 yarovoiag