ViewModel in Android Studio using Kotlin | Android Knowledge

Поділитися
Вставка
  • Опубліковано 22 лип 2024
  • Welcome to Android Knowledge!
    In this video, we will learn what is view model in android studio using kotlin - Android Kotlin Advanced Series
    ViewModel Dependency: implementation ("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2")
    Android - Kotlin (Beginners to Advanced) Playlist:
    • Android - Kotlin (Begi...
    Join our Telegram Group:
    t.me/androidknowledge
    Instagram:
    / android_knowledge
    My Best Laptop for Android Development:
    amzn.to/3wVfgnE
    Website:
    androidknowledge.com
    My Laptop SSD for Fast Android Studio Experience:
    amzn.to/40qvoLo
    My Laptop Stand with Cooling Fans - Avoid Heating Due to Android Studio:
    amzn.to/3RxeGpV
    If you have any queries or errors, please feel free to comment below :-)
    Please subscribe to my channel 😊👍
    Chapters:
    00:00 - Intro
    00:09 - ViewModel
    02:36 - Example
    03:16 - Pre-requisites
    04:58 - activity_main.xml
    05:48 - MyViewModel.kt
    08:44 - MainActivity.kt
    11:00 - Output
    11:46 - System Configuration (Screen Rotation)
    12:46 - Outro
    Hashtags:
    #android #androidstudio #kotlin #androiddevelopment #mobileappdevelopment
    Keywords:
    ViewModel in Android Studio using Kotlin | Android Knowledge
    viewmodel,android,androidviewmodel,model,androidstudio,view,livedata,orientation,guide,device,rotation,lifecycle,onsaveinstancestate,lifecycle,architecture,save,room,data,live,change,howto,rotate,kotlin,activity,tutorial,viewmodelprovider,component,components,app,kotlin, mvvm, model, view, viewmodel, counter app, configuration changes, system configuration in android, model view view model.
    Disclaimer:
    We are a participant in the Amazon Associates Program, an affiliate marketing program designed to provide a means for us to earn fees when you click on a product link and make a purchase at no extra cost to you.
    All rights reserved by Android Knowledge ©
  • Наука та технологія

КОМЕНТАРІ • 20

  • @novayoutube2937
    @novayoutube2937 10 місяців тому

    Well explained ma'am, thanks ☺️

  • @moonlightstudio
    @moonlightstudio 10 місяців тому

    please also create tutorial how to implement view model, live data in fragment when make simple calculate formula, coz I'm difficulty with lifecycle of fragment, thanks

  • @gufraanshaikh3798
    @gufraanshaikh3798 10 місяців тому

    Very Informative, thanks 👍🏼

  • @Al-Balag3294
    @Al-Balag3294 10 місяців тому

    Another important video for Kotlin developers,
    Thank you very much

  • @duytam6597
    @duytam6597 10 місяців тому

    so understandable with this example, love you 3000

  • @memeshorts0113
    @memeshorts0113 10 місяців тому

    Thank for these advance series video mam, we really want your videos it helps us🙂

  • @fredjakaa246
    @fredjakaa246 10 місяців тому

    🎉🎉🎉 Thanks a lot teacher waiting for this❤

  • @iqbalrivaldi2856
    @iqbalrivaldi2856 10 місяців тому

    Thank you mam for your sharing, i like it❤

  • @user-bj8fl7rf5l
    @user-bj8fl7rf5l 3 місяці тому

    謝謝老師

  • @MsCpktnwt
    @MsCpktnwt 4 місяці тому

    What if I use singleton class to avoid screen rotation affect?

  • @logicworm
    @logicworm 6 місяців тому

    in the last of video you tell by using viewmodel it will overcome the orientation issue(it will not chnge the value by rotation but it chnge to zero) so it will do by only save intance state??

  • @harderexp8166
    @harderexp8166 10 місяців тому

    Respect , subed

  • @mohamedabdullah6540
    @mohamedabdullah6540 10 місяців тому

    So viewModel is like Adapter?

  • @mdtaufik6585
    @mdtaufik6585 10 місяців тому

    mam can you create compiler all in one

  • @billionbd
    @billionbd 10 місяців тому

    Dear sister, what language is best for learning for future Java or Kotlin? Please answer your own perspective.

    • @android_knowledge
      @android_knowledge  10 місяців тому

      Kotlin is the future of android development.
      Java is great undoubtedly but companies has switched to kotlin for app development.
      Also, please focus on logic building rather than programming language :-)

    • @billionbd
      @billionbd 10 місяців тому

      @@android_knowledge thanks sister for your honest opinion.