MVVM on Android [SUBSCRIBER]
source link: https://www.raywenderlich.com/34930785-mvvm-on-android
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
MVVM on Android | raywenderlich.comGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupShapeGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroup
This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
MVVM on Android
Sep 1 2022 · Video Course (49 mins) · Intermediate
In this course, you will learn how to build an Android app using the Model-View-ViewModel presentation architecture pattern including testing.
Version
- Kotlin 1.6, Android 12, Android Studio Chipmunk | 2021.2.1 Patch 1
MVVM on Android
Introduction
2:28 FreeLet’s review what you will be learning in this course, including a brief discussion of benefits of MVVM and the course sample project.
Understand MVVM
4:46Learn about the need for architecture patterns like MVVM and define the layers of an MVVM app.
Build the Model
7:42Create the Model layer for the course sample project, including adding JUnit tests of Model layer classes.
Model the Repository
7:30Create a repository interface for saving your Model data, and implement a concrete version of the repository using the Room database library.
Explore the View
2:26Examine the XML layout file and Kotlin class that constitute the View layer of the Add Creature screen.
Build the ViewModel
7:43See how to use the Android Architecture Component ViewModel and LiveData classes to create a ViewModel layer for your app.
Test the ViewModel
4:18Use JUnit to add unit tests for the functionality of the ViewModel layer, while utilizing Mockito to mock dependent classes.
Add the ability for the ViewModel to save Model data into the repository when receiving user events from the View layer.
Prove out your understanding of writing ViewModel tests by adding a test
Put your new MVVM skills to work by creating a ViewModel for the All Creatures screen that shows a list of all creatures in the repository.
Conclusion
1:45Review what you learned in the course and learn about other potential architecture patterns for your Android apps.
Version history
Android 12, Kotlin 1.6, Android Studio Chipmunk | 2021.2.1 Patch 1 (Selected)
Sep 1 2022Android 4.4+, Kotlin 1.2, Studio 3.1.4
Oct 16 2018Who is this for?
Intermediate Android developers who want to learn how to structure their projects in a scalable and maintainble way using the Model-View-ViewModel architecture pattern.
Covered concepts
- Separation of Concerns
- Model-View-ViewModel (MVVM)
- Repository Pattern
- Writing Automated Tests
Contributors
Joe’s path to software development began in the fields of computational physics and systems engineering. He started as a web...
InstructorEmmanuel is a Software Engineer with a passion for teaching who has worked with different coding boot-camps. When not creating...
UpdaterNicolai is a video editor of the RayWenderlich team - a team consisting of over 200 developers and editors from all across the...
Video EditorComments
Reviews
We want to hear your thoughts!
Log into your account to leave a review for this Video Course.
All videos. All books.
One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.
The largest and most up-to-date collection of courses and books on iOS, Swift, Android, Kotlin, Flutter, Dart, Server-Side Swift, Unity and more!
All videos. All books. One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalogue of 50+ books and 4,000+ videos.
- © 2022 Razeware LLC
- Made with ♥ from around the world
- 6000+ Tutorials and counting
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK