Android ViewBinding vs Kotlin Synthetics - Deprecation of Android Kotlin Extensions Gradle plugin

  Рет қаралды 5,928

Rahul Pandey

Rahul Pandey

Күн бұрын

Пікірлер
@cs-200-ok
@cs-200-ok 2 жыл бұрын
I am new to android development and learning viewbinding got confused why my synthetic is not working .............. Now it is ressolved .............. Hats off to you man
@dura3933
@dura3933 3 жыл бұрын
Thank you very very much for your good explanation. You tell about what it's like in the past and then explain about the issue. I have been confused about this issue for 2 days and your video really help me. I just started learning online course of kotlin and android studio but the course is a bit old and not up to date. Thank you so much.
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
So glad to hear that 🤗
@47joshua
@47joshua 3 жыл бұрын
2,776 views really!! this is one of the best Android ViewBinding tutorial in youtube🔥🔥
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
wow, thank you!
@coolsai
@coolsai 3 жыл бұрын
This is going to save lot of time ! thanks for the video
@damercy
@damercy 4 жыл бұрын
Thanks for this explanation man! I have been hearing about view binding but it was so confusing until now. ✌️👌 On a side note, would you be making a playlist on kotlin higher order functions, different use cases of with, apply etc anytime soon? Would love a quick video on that! 😄
@RahulPandeyrkp
@RahulPandeyrkp 4 жыл бұрын
I was planning to make a Kotlin video, but hadn't planned to cover that specifically. Will add it to my list!
@damercy
@damercy 4 жыл бұрын
@@RahulPandeyrkp Awesome! Thanks a ton! 😄
@gajendrapandeya5081
@gajendrapandeya5081 4 жыл бұрын
Sir please make a video on themes that are auto-generated in new android studio project Which color is applied to what ?
@RahulPandeyrkp
@RahulPandeyrkp 4 жыл бұрын
I can add that to my list. Might wait a while so everyone can adopt the new Android Studio and there's less confusion 😂
@gajendrapandeya5081
@gajendrapandeya5081 4 жыл бұрын
@@RahulPandeyrkp 😂 thanks sir
@ethiomusic3158
@ethiomusic3158 2 жыл бұрын
I am getting bored to go with changeable syntaxes. Should I change all my former project works by checking everything??????... Migration from Java to Kotlin may be good by default but putting codes for each former works here???... I know you are smart tutorial instructor. What do you advise us to go with such boring programming or app development task?
@RahulPandeyrkp
@RahulPandeyrkp 2 жыл бұрын
I'm not sure I understand the question. In general with software engineering, if something works, don't touch it.
@ethiomusic3158
@ethiomusic3158 2 жыл бұрын
@@RahulPandeyrkp I want the Google AdMob on my app and it requested me metadata gradel. No matter for this and the problem is binary problem. I changed the version of Kotlin. Then it come again deprication of extension to parcel. And it disturbed many of my codes. How could I solve it easily? Can I keep metadata with extension? Is there any other possible solution? I have gone back to my former extension now.
@kdev4908
@kdev4908 3 жыл бұрын
Why viewbinding is still not enabled by default? Any downsides?
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
I think it's still considered an "advanced" feature since it requires some clean up in the destroy lifecycle event
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
developer.android.com/topic/libraries/view-binding
@sujeetarya3478
@sujeetarya3478 3 жыл бұрын
Hey I have been using view binding since this video and their was no problem until now, when I use view binding the root layout margin don't work what is the reason for that?? So to overcome this I use 1 extra root layout and put margin in that ..and I know this is not good way of doing this so what should I do??
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
You should be able to get a reference to the root view- can you do it through the getRoot() method on the binding object? As documented here: developer.android.com/topic/libraries/view-binding#usage
@starkhunt2684
@starkhunt2684 2 жыл бұрын
Thanx for the explanation bhai, great video
@Saptarshi88
@Saptarshi88 Жыл бұрын
your video helped me a lot.. I was trying to figure this out for almost 2 days. Not it is fixed. Thanks a lot
@immersivevr3605
@immersivevr3605 3 жыл бұрын
how to implement viewBinding in Fragments , some lifecycle differences are confusing and there are not many tutorials as its new...
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
Here's the article: developer.android.com/topic/libraries/view-binding#fragments
@coolsai
@coolsai 3 жыл бұрын
very helpful video !
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
thank you!
@victorsubbiah6077
@victorsubbiah6077 Жыл бұрын
name of this plugin is confusing. 'Android-Kotlin-Extension-Gradle-Plugin'.
@almoni127
@almoni127 3 жыл бұрын
Great and clear video. Helped a lot!
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
Glad to hear that 🤗
@almoni127
@almoni127 3 жыл бұрын
@@RahulPandeyrkp BTW, I'm familiar with C# where they simply have a generated part of the class in another file. I wonder why this wasn't the solution here.
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
in fact, with viewbinding, the Android system generates a binding class for each XML layout file!
@oluwaseunfatusin2696
@oluwaseunfatusin2696 6 ай бұрын
Thanks you boss. Respect🙌
@burakcanduzcan
@burakcanduzcan 3 жыл бұрын
couldn't they keep it as cool as before? :/
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
they were trying to address some of the challenges with the automatic kotlin extensions approach - I know it's more code :/
@Mohit-gb9dv
@Mohit-gb9dv 4 жыл бұрын
Please start a flutter series 😄 and if you are going to start please post in community
@RahulPandeyrkp
@RahulPandeyrkp 4 жыл бұрын
will certainly do that if I get around to learning flutter 😋
@adamdeane4675
@adamdeane4675 4 жыл бұрын
@@RahulPandeyrkp Android Native for the win!
@ashishgautam2842
@ashishgautam2842 4 жыл бұрын
Cool explaination 🤘🤘
@shrinathoza6056
@shrinathoza6056 3 жыл бұрын
Very very helpful👍🏻👍🏻 and Level of explaination is 🔥...thank you
@RahulPandeyrkp
@RahulPandeyrkp 3 жыл бұрын
Glad it was helpful!
@ShadowX5GamerQ8
@ShadowX5GamerQ8 4 жыл бұрын
thx for this explanation bro
@RahulPandeyrkp
@RahulPandeyrkp 4 жыл бұрын
My pleasure 🎁
@oscarrenan
@oscarrenan 2 жыл бұрын
The records can have, in the same database, a url of the web image and make a listing, using a cardwiew with the records and associated image, looking for the image of the url to show next to each record ? answer so I can see doing this I'm in an internship and they asked me for an app with this and I can't find how to do it even in the manual, someone must have kept a secret about it. Not even andoid means how to do it The company is looking for someone to hire who knows how to do this for them, can you do it? Show.
@devppratik
@devppratik 4 жыл бұрын
Thanks for the info
@Ab-no6rz
@Ab-no6rz 4 жыл бұрын
Thank you Sir
@dongct2504
@dongct2504 9 ай бұрын
neat
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Kotlin Coroutines: Getting Started in Android - Beginner Tutorial
17:44
Make Your Code Clean With the SOLID Principles
18:24
Philipp Lackner
Рет қаралды 102 М.
Android ViewBinding in 8 Minutes
8:59
Philipp Lackner
Рет қаралды 78 М.
What is Amazon actually like as an engineer? (by ex-Amazonians)
22:08
How to Kotlin - from the lead Kotlin language designer (Google I/O '18)
39:24
BOTTOM NAVIGATION VIEW - Android Fundamentals
16:53
Philipp Lackner
Рет қаралды 56 М.
SQLite Database for Android - Full Course
1:28:22
freeCodeCamp.org
Рет қаралды 256 М.