HeaderRecyclerView
HeaderRecyclerView copied to clipboard
Bind methods should use the generic type declared in the class to avoid downcasting
With the current implementation you have to downcast the view holder to be albe to use it inside bind methods. We should parametrize the class with generics to avoid that downcast.
But even the item view can have different types, and they may use different ViewHolder, so is this really necessary?
The usage of generics is going to be always safer.
The problem is that if you fix this, you have to pass in generic type infomation in the class, and this will break existing usage.
We will publish the new release as a major if needed.