Open mr-archano opened 10 years ago
Thanks @mr-archano! This is looking good after quick skim. I'll do more thorough review later today or tomorrow.
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 :)
Using generics in the
ItemLoader
is possible to avoid the dependency fromandroid.widget.Adapter
and ease future generalisations that can use other type of adapters/target views (eg:RecyclerView
). This has been possible becauseItemLoader
does not rely on anyandroid.widget.Adapter
behaviour, but uses that type only in the signature of some of its business methods.