ViewModel Explained - Android Architecture Component | Tutorial

preview_player
Показать описание
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN

🐱‍👤 Wanna become a member? Join!

📸 Instagram

// ViewModel dependency

The ViewModel class is designed to store and manage UI-related data in a lifecycle conscious way. The ViewModel class allows data to survive configuration changes such as screen rotations. So when we are talking about Activity or Fragment we are actualy refering to UI Controllers. And ViewModel class should be created for each UI Controller in order to separate things like data and diferent calculations from UI Controler. In UI Controller there should only be necessary code for managing our UI, and everything else we could placed inside a ViewModel class.

Timestamps
0:00 - Introducing with ViewModel
1:30 - Practical example with ViewModel
6:30 - Conclusion
Рекомендации по теме
Комментарии
Автор

Wow, this is so modern! Finally a video that feels from 2020

ben
Автор

That feeling when a foreigner explains in a shorter and clearer way than compatriots. Thank you, this is the shortest and most understandable video on the viewmodel that I have

TheDamiankain
Автор

Man you're good in this teaching stuff !! If everyone trying to explain something is organized, straight to the point, covering the whole subject as you the world would have been a much better place.
Thank you and please go on with this art you're creating

Data_Science_BelMasry
Автор

Man I have been struggling to find a short video straight to the point! excellent nice explained. 10/10

faboxbkn
Автор

Most modern android tutorial..plz keep making them

silentassassin
Автор

Thank you very much. you don't have any idea that how helpful your tutorials have been for me in last few months.

theMajesticMJ
Автор

2:06 how does he find button and text views without findViewById or viewbinding?

myyfstz
Автор

Il n'y a pas plus simple façon d'expliquer. Love this tutorial!

freddygoudou
Автор

Thanks. Short and precise. Just what I needed.

davidgreenwitch
Автор

Thank you!!, I was chewing and watching tutorials, and this video was the one that could open the picture for me

solidlucho
Автор

Good short easy to understand tutorial, keep your work up👍

gesit
Автор

so its just a seperate class where all the logic takes place while the main activity is just there to facilitate displaying information correctly?

chunkies
Автор

Thanks man now I will never get confuses on what is ViewModel

anb
Автор

Thanks for not over complicating this subject.

chriscampbell
Автор

Videos are concise, to the point and relevant

rinkup
Автор

Excellent video ! Drove the point home with a practical example. Very easy to follow ! Thanks a ton !

MarcelloLins
Автор

Excellent Video, very useful. Regards from Caracas, Venezuela

VenewebTV
Автор

Welle explained, straight to the point . I don't understand english very well but here averything is clear

xaviersoh
Автор

Thank you. Your explanation is clear and easy to understand!

a-zlearning
Автор

Thank you. The best tutorial I have seen. You have good teaching skill how to use simple example to transfer the knowledge to students effectively.

iamskyhorse