A simple beginner-friendly walkthrough of how to implement a ViewModel and a ViewModel Factory for a #kotlin #android app.
Consider Subscribing 🤩
[ Ссылка ]
Chapters:
00:00 Intro
00:15 What is a ViewModel?
01:22 Example app walkthrough
04:36 Add dependencies
05:11 Implement first ViewModel
12:18 Implement second ViewModel
14:49 Implement ViewModelFactory
GitHub Repository
[ Ссылка ]
Google's Official Documentation on ViewModels:
[ Ссылка ]
One line method for creating ViewModel Factory:
[ Ссылка ]
Awesome Tutorial by Lyla Fujiwara:
[ Ссылка ]
-----
The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.
Ещё видео!