We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
Hi I don't know why there is not enough documentation but it is possible to handle onClick(), onLongClick() or any other kind of action that you want.
To do that you should follow below steps:
public BookViewBinder(View itemView, OnClick onClick) { super(itemView); this.onClick = onClick; rootView = itemView.findViewById(R.id.item_nest_book_root); }
@Override public void bindView(TreeNode treeNode) { rootView.setOnLongClickListener(v -> { onClick.onBookLongClick((Book) (treeNode.getValue())); //cast treeNode.value() to prefered data type return true; }); }
public class BookViewFactory extends BaseNodeViewFactory { OnClick onClick; public BookViewFactory(OnClick onClick) { this.onClick = onClick; }
good luck.
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: