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 © - Наука та технологія
Well explained ma'am, thanks ☺️
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
Noted :-)
Very Informative, thanks 👍🏼
Another important video for Kotlin developers,
Thank you very much
so understandable with this example, love you 3000
Thank for these advance series video mam, we really want your videos it helps us🙂
🎉🎉🎉 Thanks a lot teacher waiting for this❤
Thank you mam for your sharing, i like it❤
謝謝老師
What if I use singleton class to avoid screen rotation affect?
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??
Respect , subed
So viewModel is like Adapter?
mam can you create compiler all in one
Dear sister, what language is best for learning for future Java or Kotlin? Please answer your own perspective.
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 :-)
@@android_knowledge thanks sister for your honest opinion.