Inheritance problem
MFlisar opened this issue · 2 comments
MFlisar commented
If I extend a custom ItemViewHolder the base classes @ViewId are not initialised...
Would be a nice feature to support inheritance...
ivacf commented
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 commented
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