ribot / easy-adapter

[DEPRECATED] Easy Adapters library for Android
http://ribot.github.io
Apache License 2.0
421 stars 50 forks source link

Inheritance problem #33

Open MFlisar opened 9 years ago

MFlisar commented 9 years ago

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

Would be a nice feature to support inheritance...

ivacf commented 9 years ago

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 9 years ago

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