architecture-samples icon indicating copy to clipboard operation
architecture-samples copied to clipboard

New Sample:Using DataBinding library and RxJava (Completed)

Open elirex opened this issue 9 years ago • 3 comments

In #214, I want to build the new sample that is combined data binding and rxjava. Now I completed this sample.

https://github.com/elirex/android-architecture/tree/todo-databinding-rxjava

elirex avatar Feb 12 '17 14:02 elirex

That's AWESOME. We'll add it to external samples after a small review.

/cc @florina-muntenescu @ErikHellman @malmstein Thanks!

JoseAlcerreca avatar Feb 14 '17 12:02 JoseAlcerreca

@elirex - So happy to see a new sample!

I checked it out a bit and, from what I could tell, the RxJava part, is taken from the todo-mvp-rxjava branch. Your version decreases the logic in the Fragments by using ViewModel classes - these doing the data binding part (like in the todo-databinding ).

Given that the similarities with the todo-mvp-rxjava are higher than with the todo-databinding, would be great if you could rebase your branch on top of it. Like this, it gets easier to compare the differences between the RxJava version and your version.

I really like that you minimise the logic in the Fragments and you move all of that logic to the ViewModel classes. But none of those ViewModels are tested. Could you unit test them?

Given that we are building a sample app, we put a high emphasis on explaining the role of every class. Could you add java docs to all the ViewModel classes? Also, please update the README.md and provide a detailed explanation of the connection between classes and the benefits of your approach. Feel free to check out the README.md files from todo-mvp-rxjava and todo-databinding for a better understanding of what and how it should be explained.

florina-muntenescu avatar Feb 25 '17 14:02 florina-muntenescu

Closing due to inactivity, feel free to reopen.

JoseAlcerreca avatar Nov 24 '17 13:11 JoseAlcerreca