MVVM Design Pattern - Simply Explained | Android Development

preview_player
Показать описание
If you don't know what is MVVM or maybe just want to understand it better, then this video is for you.
In this video, we are going to learn what is MVVM, why we should use it, and how to use it with an actual Android Project.
In order to understand it better, we are going to create a simple Notes app, and structure it to follow the MVVM design pattern. We are also going to use Room Database to save, display and delete our notes.
By the end of this video, you are going to hopefully learn about MVVM and get a nice notes app as a bonus.

𝗟𝗶𝗻𝗸 𝘁𝗼 𝘁𝗵𝗲 𝗽𝗿𝗼𝗷𝗲𝗰𝘁 𝗼𝗻 𝗚𝗶𝘁𝗛𝘂𝗯:
Initial Project:
With MVVM:

💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾
Between my full-time job and my family life,
I try to find free time to create content for this channel.
You can support me and help this channel keep growing:
💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾

💻 This Is My Development Setup (Affiliate): 💻
============
Main Monitor:
Secondary Monitor:
Graphics Card:
CPU:
RAM:
Keyboard:
Mouse:
Headphones:
Microphone:
=============

Tag for the Algorithm:
What is MVVM Design Pattern
How to create a view model with Kotlin
How to use MVVM with Room Database
Room Database with Dependency Injection
What is a Repository and view model

#mvvm #android #viewmodel
Рекомендации по теме
Комментарии
Автор

One of the best explanation on MVVM !!!

samyaksingh
Автор

This is the 1st video that actually helped understand MVVM thingy. Thank you so much! ^^

luckydevil
Автор

Wow !!
I just have no words to express about this video, it is amazing. I've finally got to learn about mvvm pattern thanks to you, you did a great job !!
New subscriber

gunnar
Автор

Hey Mike,
Thanks for the great tutorial! Im looking forward for the dependency injection video
My question is ; Should we seperate the layout files into different packages aswell ?

sercanorhangazi
Автор

Dislike since you said not to mix layers, but then created "ui" package for first layer (View) and added your ViewModel:s inside it, mixing the layers, which you said not to do.

MarkusLaire
Автор

Hey Mike - do you have an email address I could reach you on?

Thanks!

crikeydev