• Services
  • Home
    • Shop
    • Cart
    • Who
    • Blog
Menu

Craft & Graft

  • Services
  • Home
  • Buy
    • Shop
    • Cart
  • About
    • Who
    • Blog

Featured posts:

Featured
Feb 26, 2023
Are you tired of losing customer trust, missing deadlines, and incurring revenue loss?
Feb 26, 2023
Feb 26, 2023
Oct 21, 2022
Shuttle v2.0.3 released!
Oct 21, 2022
Oct 21, 2022
Jul 24, 2022
Shuttle v2.0.2 is out!
Jul 24, 2022
Jul 24, 2022
Dec 20, 2021
Using the Seismograph Design Pattern for External Dependency Faults
Dec 20, 2021
Dec 20, 2021
Jul 2, 2021
Shuttle Framework v1.0.0 Released
Jul 2, 2021
Jul 2, 2021
Oct 1, 2020
Is Self-Documenting Code Really the Only Documentation Needed?
Oct 1, 2020
Oct 1, 2020
Sep 17, 2019
Android Data Binding with Recycler Views and MVVM: a Clean Coding approach
Sep 17, 2019
Sep 17, 2019

Android Data Binding with Recycler Views and MVVM: a Clean Coding approach

September 17, 2019

I love to envision and create clean architectural solutions. One of the many responsibilities of a Software Architect includes giving guidance on architecture and design patterns.

Sometimes, creating a code implementation while adhering to patterns can be confusing. This is especially true with Android and Model-View-Model (MVVM), where Software Architects and Engineers application of the different classes in how they apply to the three components of MVVM. One concrete example is MVVM with Android Recycler Views, a type of list, their adapters, and their items. Sorting it out may not as straightforward without realizing a good architectural solution.

In January of 2018, I wrote a blog as an introduction of clean coding with Recycler Views and MVVM. It provides a clear explanation of MVVM in combination with Recycler Views and Google’s data binding library.

If you would like to read the blog, it can be found here and the source code here.

Google’s architecture components had not been mentioned nor released at that time. Therefore, there is no mention nor usage of the Google’s ViewModel classes in the blog and Github repository.

Tags: Model-View-ViewModel, mvvm, recyclerview, Clean Coding
← Is Self-Documenting Code Really the Only Documentation Needed?
Back to Top

Contact

Contact Us

getintouch@craftandgraft.com

16767 Bernardo Center Drive #27311
San Diego, CA 92128
United States

 

Craft & Graft LLC. © 2023. All Rights Reserved.