smoothie icon indicating copy to clipboard operation
smoothie copied to clipboard

Removing android.widget.Adapter dependency from ItemLoader

Open mr-archano opened this issue 11 years ago • 2 comments

Using generics in the ItemLoader is possible to avoid the dependency from android.widget.Adapter and ease future generalisations that can use other type of adapters/target views (eg: RecyclerView). This has been possible because ItemLoader does not rely on any android.widget.Adapter behaviour, but uses that type only in the signature of some of its business methods.

mr-archano avatar Sep 21 '14 21:09 mr-archano

Thanks @mr-archano! This is looking good after quick skim. I'll do more thorough review later today or tomorrow.

lucasr avatar Sep 23 '14 12:09 lucasr

I have worked on a quick&dirty port of Smoothie that is working with the RecyclerView (mostly a copy/paste of the ItemManager and ItemManaged classes), but the change in this PR was needed in order to preserve the Smoothie API (the user only knows about ItemLoader). It would be cool to hear from you about the Smoothie 1.0 API, I would be happy to contribute :)

mr-archano avatar Sep 23 '14 13:09 mr-archano