power-adapters icon indicating copy to clipboard operation
power-adapters copied to clipboard

Make RecyclerConverterAdapter's ViewHolder overrideable

Open DSteve595 opened this issue 7 years ago • 2 comments

This allows subclasses of RecyclerConverterAdapter to also use their own subclasses of RecyclerConverterAdapter.ViewHolder. This enables the use of AdvancedRecyclerView's (https://github.com/h6ah4i/android-advancedrecyclerview) drag-and-drop, which requires that ViewHolders implement a certain interface.

DSteve595 avatar May 01 '17 04:05 DSteve595

Might also need to expose RecyclerViewContainer, and perhaps a factory function for creating the ViewHolders. I'd like to look into this a bit myself later, since I want to carefully manage the API of RecyclerConverterAdapter to avoid exposing unnecessary details. In the mean time, copy the RecyclerConverterAdapter source into your code base and we can discuss any interoperability issues you run into.

See #48

BenTilbrook avatar May 01 '17 05:05 BenTilbrook

Gotcha. That's what I'm currently doing, and so far I haven't needed to extend the container. A ViewHolder factory would solve my issue,

DSteve595 avatar May 01 '17 05:05 DSteve595