Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hlongvu opened this issue Dec 16, 2017 · 2 comments

Comments

@hlongvu
Copy link

hlongvu commented Dec 16, 2017

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.

@cioraneanu
Copy link

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

@yarovoiag
Copy link
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
Projects
None yet
Development

No branches or pull requests

3 participants