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

Get rid of Method B to create and bind ViewHolders #344

Closed
davideas opened this issue Apr 16, 2017 · 0 comments
Closed

Get rid of Method B to create and bind ViewHolders #344

davideas opened this issue Apr 16, 2017 · 0 comments

Comments

@davideas
Copy link
Owner

Method B is the classic way to implement the Adapter by overriding onCreateViewHolder() & onBindViewHolder(). Those methods will be now declared final because Method A will be the new standard.

From now on, we will use only Method A: we will delegate the previous operations to the item interfaces.
Item interfaces will now mandatory implement the following methods:

  • getLayoutRes()
  • createViewHolder()
  • bindViewHolder()
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

1 participant