Android ViewModel and ViewModel Factory Tutorial for Beginners with Example

Pubblicato il: 18 dicembre 2022
sul canale di: Daniel Talks Code
3,074
57

A simple beginner-friendly walkthrough of how to implement a ViewModel and a ViewModel Factory for a #kotlin #android app.

Consider Subscribing 🤩
   / @danieltalkscode  

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
https://github.com/danpgomez/checkout...

Google's Official Documentation on ViewModels:
https://developer.android.com/topic/l...

One line method for creating ViewModel Factory:
  / viewmodel-with-viewmodelprovider-factory-t...  

Awesome Tutorial by Lyla Fujiwara:
  / viewmodels-a-simple-example  

-----
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.


In questa pagina del sito puoi guardare il video online Android ViewModel and ViewModel Factory Tutorial for Beginners with Example della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Daniel Talks Code 18 dicembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,074 volte e gli è piaciuto 57 spettatori. Buona visione!