Back to Browse

Android Studio -A Simple ViewModel example in Kotlin Jetpack Compose - for beginners.

1.1K views
Jan 21, 2024
10:48

A Simple View Model example in Kotlin with Jetpack Compose for beginners. Link: https://youtu.be/0FKoeJmlRaU In this video we will set up our view model class. So therefore we will specify or say that a class will be a certain type. That's basically what inheritance is all about. I plan to also look at inheritance in a separate video (hopefully). But for now let's stick with this counter app example and see how we can ensure that our code and classes are organized for the particular role they fulfill. Converting Counter App with MVVM Source 1: Copy the main activity to you main activity as instructed in the video https://github.com/BngDev212/KotlinViewModel-Part1 https://github.com/BngDev212/KotlinViewModel-Part1/tree/main/app/src/main/java/com/tmdsimple/kotlinviewmodel Source 2 (The final App): Resources: https://developer.android.com/topic/libraries/architecture/viewmodel https://developer.android.com/jetpack/compose/state Previous video: Android Studio Jetpack Compose Fundamentals Part-1 (Text, Modifiers, Image and Layout) for beginners. https://youtu.be/OagpV8fAC_s A Simple View Model example in Kotlin with Jetpack Compose for beginners. Link: https://youtu.be/0FKoeJmlRaU Android Studio for beginners - kotlin Jetpack Compose Navigation - Simple Login UI. https://youtu.be/slvPrHmRQUE How To CAST/MIRROR Android Mobile Phone Screen to PC Laptop for Free Connect Phone to PC Laptop!! https://youtu.be/GG-xX8fEsDg Android Studio upgrade to hedgehog version 2023.1.1 - Kotlin & Jetpack Compose https://youtu.be/LZLgAHnWBic --------------------------------------------------------------------------------------------------------------------------- TAG: kotlin view model example, jetpack compose view model, kotlin viewmodel dependency --------------------------------------------------------------------------------------------------------------------------- #androidstudiotutoriallatestversion #kotlinviewmodelexample #androidviewmodel #jetpackcomposeviewmodel #kotlinviewmodeldependency #kotlinbasics #androidstudiohedgehog #learnkotlin #upgradeandroidstudio #androidstudiotutrial #kotlinprogramming #jetpackcompose #jetpackcomposetutorial

Download

0 formats

No download links available.

Android Studio -A Simple ViewModel example in Kotlin Jetpack Compose - for beginners. | NatokHD