GraphView icon indicating copy to clipboard operation
GraphView copied to clipboard

NodeViewHolder class does not exist?

Open BrayanOB2003 opened this issue 3 years ago • 1 comments

When I try to implement the library, the NodeViewHolder class is not instantiated. Is it a class that I have to create myself?

BrayanOB2003 avatar Jun 25 '22 15:06 BrayanOB2003

Hi @BrayanOB2003, yes since GraphView is built on top of RecyclerView you need ViewHolders like in this case a NodeViewHolder which is derived from RecyclerView.ViewHolder. And there you bind the data which should be displayed.

GregorBlock avatar Jun 27 '22 11:06 GregorBlock