pedrovgs / Renderers

Renderers is an Android library created to avoid all the boilerplate needed to use a RecyclerView/ListView with adapters.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RxJaxa

lightglitch opened this issue · comments

Nice, how would you integrate the Observable pattern in your library?

Observable pattern can be applied inside renderers using a model to configure your renderers to return observable objects. A good implementations could be combine renderers with MVVM pattern and create VM that returns Observable to be observed by custom views or the renderer. Your renderer should use VM to render each row.

With that ideal implementation you could be able to change the row of your ListView without use notifyDataSetChange() method in RendererAdapter, but be careful because you should unregister the observer when the content of your renderer change.

Thx for the explanation. I will try it.

You are welcome!