One possible change. Its better to put that business logic where you increment the number in the viewModel. Its not View's job to work on logic. It just has to call viewModel's method to update the count.
Hi, Thanks for useful video regarding The ViewModel & LiveData Tutorial in Android Studio (Kotlin). I saw in the video that without defining the Button in the activity (like val btn_button=this.findViewById(R.id.btn_button) as Button) you were using directly the button id of the layout. How you did that because Android Studio gets error of this syntax
Dude, I loved this video, help me a lot, I have a question, I just want to do the same thing but I want it increment the number itself like automatically. I tried to put the fun in a for and even in a do, while but didn't work... Do u understand? Thanks brother. You're amazing
So, if I don't use an observer on the view model and just do setText on the textview in the button click listener, will the textview get reset after rotation?
Hello kind people, I have a stupid question, I was following this tutorial with the exception of defining my dependencies in the gradle script but somehow the project still works. Same goes for RecyclerView. Can somebody help me understand ?
Well, did not work for me. i checked and checked..... Someone below asked you....am I am wondering the same "I saw in the video that without defining the Button in the activity (like val btn_button=this.findViewById(R.id.btn_button) as Button) you were using directly the button id of the layout. How you did that because Android Studio gets error of this syntax"
Simplest way to explain it
Don't get discouraged by less views bro
Your tutorials are easy to learn and very helpful
This is exactly what I was looking for. Simple, concise and to the point
Simple. And very powerful. One good and simple example is worth more than 1 billion words!
Hey karateswe, I really appreciate the kind words. Hope to see you around the channel more often!
Bro ...this is the best explanation I have come around... please make more tutorials such as this...
One possible change. Its better to put that business logic where you increment the number in the viewModel. Its not View's job to work on logic. It just has to call viewModel's method to update the count.
I have to say, when teaching about the use of viewmodel and why, this is by far one of the most important things. This validates a redo in my opinion.
no bullshitting no like subscribe comment, straight to point. very clear and precise. subscribed 🧡. wanna see more android stuff though
Wow man loved it, you made it very simple.
I can see the future when you do Dagger Hilt, MVVM, Testing, Coroutines, Retrofit, Room, WorkManager, Navigation in one app!
It's coming together 🧘
Eventually I'm sure we will get there. But that sounds like it's going to require a major amount of planning aha
best explanation I have seen ever. Great work
Woww ,this tutorial made things simple for me .thank you .
Great video! Simple and direct to the point!
Love you 😘 after many videos i found the right one
Thank you so much. I was coding wrong my whole life 🤣
I wish it was possible to subscribe 1 million times.
Thanks mate, just sharing my content with your friends is more than enough
This video very helpful to me. Thank you man
Thank you very much!! very helpful!
Amazing video bud, simple and good explanation.
Make a big project as well lol
Very helpful and understandable... Thx
Hi, Thanks for useful video regarding The ViewModel & LiveData Tutorial in Android Studio (Kotlin). I saw in the video that without defining the Button in the activity (like val btn_button=this.findViewById(R.id.btn_button) as Button) you were using directly the button id of the layout. How you did that because Android Studio gets error of this syntax
Hi, probably used plugins which is id "kotlin-android-extensions". you can add in grandle file this extensions
Did you ever figured out how he did it? lol
Simple and well explained, thank you
Amazing video bud, thanks
Dude, I loved this video, help me a lot, I have a question, I just want to do the same thing but I want it increment the number itself like automatically. I tried to put the fun in a for and even in a do, while but didn't work... Do u understand? Thanks brother. You're amazing
I'm happy you like, I think you should look into flows since that the most modern way of doing what it sounds like you're trying to do.
@@Indently Yeah, I have been looking for flows, thank you man
Great vid, thanks!
Well said, bro! Great job! :В
Hi, bro!
Where are you from?
You showed really great tutorial , but I have a question , how did you use TextView and button without even initialising them , please let me know
Kotlin synthetics
My hero!
just the best bro
Very good but getting an error cannot create an instance of class ViewModel
Cool.
you are very nice talking
So, if I don't use an observer on the view model and just do setText on the textview in the button click listener, will the textview get reset after rotation?
Hello sir, can we make video player app like MxPlayer. Show video folder by folder in recyclerView. Please♥️
Thanks
Maybe you will record something about a Room with multiple tables?
Hopefully in the near future!
Hello kind people, I have a stupid question, I was following this tutorial with the exception of defining my dependencies in the gradle script but somehow the project still works. Same goes for RecyclerView. Can somebody help me understand ?
How to remove the observer ?
observer was deleted in new update .
Well, did not work for me. i checked and checked.....
Someone below asked you....am I am wondering the same
"I saw in the video that without defining the Button in the activity (like val btn_button=this.findViewById(R.id.btn_button) as Button) you were using directly the button id of the layout. How you did that because Android Studio gets error of this syntax"