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

Inheritance problem #33

Open
MFlisar opened this issue Jun 17, 2015 · 2 comments
Open

Inheritance problem #33

MFlisar opened this issue Jun 17, 2015 · 2 comments

Comments

@MFlisar
Copy link

MFlisar commented Jun 17, 2015

If I extend a custom ItemViewHolder the base classes @ViewId are not initialised...

Would be a nice feature to support inheritance...

@ivacf
Copy link
Contributor

ivacf commented Jun 18, 2015

Hi, inheritance of custom ItemViewHolders is not currently supported. I'll see if we can do something about this for the next release.
For now all your fields annotated with @ViewId have to be in the child view holder class that is passed into the EasyAdapter.

@MFlisar
Copy link
Author

MFlisar commented Jun 18, 2015

I write a function in the base class and hand on all views from the child class and annotate all of them there... This way it works, but the annotations have to be done always in the child classes, just as you say... Thanks

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

2 participants