ribot / easy-adapter

[DEPRECATED] Easy Adapters library for Android

Home Page:http://ribot.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inheritance problem

MFlisar opened this issue · comments

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

Would be a nice feature to support inheritance...

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.

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