android-mvvm icon indicating copy to clipboard operation
android-mvvm copied to clipboard

replaced MvvmActivity with MvvmBinder

Open mike-mathieu opened this issue 8 years ago • 1 comments
trafficstars

User can now extend any Activity. Also can be used with Fragments. Let me know what you think.

mike-mathieu avatar Mar 21 '17 20:03 mike-mathieu

I am not sure about this approach as of now. Extracting the logic of MvvmActivity into a separate class is a great idea as it encourages composition instead of inheritance. However, the code in MvvmActivity is very trivial, and can be easily implemented for fragments. Creating a doc in README should be enough at this point. Before providing support for fragments, I want to complete support for activities, mainly #37. That would refine the structure for Binder, which then can be extended for fragments.

manas-chaudhari avatar Apr 01 '17 07:04 manas-chaudhari