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

Add ItemViewDelegate & onCreateViewHolder(context, _) #292

Merged
merged 3 commits into from
Dec 9, 2019

Conversation

drakeet
Copy link
Owner

@drakeet drakeet commented Dec 9, 2019

This PR adds a new ItemViewDelegate which is renamed from the old ItemViewBinder, and the old ItemViewBinder now inherits from ItemViewDelegate and provides a compatible LayoutInflater version of ItemViewDelegate implementation.

This change is compatible with the old API, so all projects using MultiType can be upgraded without any changes. But if you need to use a better ItemViewDelegate with a Context parameter, you need to change to inherit ItemViewDelegate by yourself.

@drakeet drakeet merged commit fb84f1a into master Dec 9, 2019
@drakeet drakeet deleted the context-delegate branch December 9, 2019 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant