Comments on: Android Data Binding with RecyclerViews and MVVM: a Clean Coding Approach http://phuncoin.com/android-clean-coding-approach/ Engage Anyone Anywhere Tue, 12 Feb 2019 16:31:30 +0000 hourly 1 https://wordpress.org/?v=6.6.2 By: Gregory Rasmussen http://phuncoin.com/android-clean-coding-approach/#comment-25734 Fri, 17 Aug 2018 18:08:19 +0000 http://127.0.0.1/?p=31716#comment-25734 In reply to Vlad.

Hi Vlad,

You’re welcome.

The purpose of creating a ViewModel for each Recycler View item view is to have ViewModels relative to the specific views in question. Following the MVVM architecture, one could follow it with having only one ViewModel for the entire view; however, I believe that would be complex and would not lend itself to be small, clean, and testable units.

Best,

Gregory

]]>
By: Vlad http://phuncoin.com/android-clean-coding-approach/#comment-25732 Fri, 17 Aug 2018 10:59:22 +0000 http://127.0.0.1/?p=31716#comment-25732 In reply to Gregory Rasmussen.

Thx, Gregory. Can you please clarify the purpose of creating viewmodel for each recyclerview item? Or this is not exactly viewmodel like we use in activity and more just like the data class?

]]>
By: Gregory Rasmussen http://phuncoin.com/android-clean-coding-approach/#comment-25610 Wed, 25 Jul 2018 19:59:13 +0000 http://127.0.0.1/?p=31716#comment-25610 Avinash and Vlad, a link to the GitHub source code has been added to the article. Thanks!

]]>
By: Vlad http://phuncoin.com/android-clean-coding-approach/#comment-25593 Mon, 23 Jul 2018 13:34:25 +0000 http://127.0.0.1/?p=31716#comment-25593 source, please)

]]>
By: Avinash ch http://phuncoin.com/android-clean-coding-approach/#comment-25591 Mon, 23 Jul 2018 11:12:21 +0000 http://127.0.0.1/?p=31716#comment-25591 code base please

]]>