FindViewByID - KotlinX Extensions or ViewBinding - ways to access your UI elements

  Рет қаралды 20,684

tutorialsEU

tutorialsEU

Күн бұрын

Пікірлер
@tutorialsEU
@tutorialsEU 3 жыл бұрын
🚀 Android & Kotlin Masterclass - Become a serious Android app developer with our best-selling masterclass: bit.ly/3PaKdhS
@RomskieL
@RomskieL 4 жыл бұрын
Thanks for this update! Im also one of your student in android master class. Though I haven't finished all the projects yet but now I building already my own simple app.
@marcosbigbrown472
@marcosbigbrown472 3 жыл бұрын
Please my greatest teacher, I am one of your students in udemy master class, and all we build was with kotlinx extension. Now the view binding is here, we are going to implement it and rebuild the apps ourselves. Thanks. But I plead with you to please prepare a lecture on chatting app for us. It's my greatest pleasures learning under you sir. Thanks and God bless
@dewetvanrooyen8458
@dewetvanrooyen8458 3 жыл бұрын
My Hero , thanks a million . I was using the findviewbyid what a pain that was.
@yogeshmishra6025
@yogeshmishra6025 3 жыл бұрын
Hi Denise, thanks for this video, just to let you know google now does not allow to publish an app using this deprecated synthetic library, i made my entire app using the same and now i have change it to use binding
@Blackops1990
@Blackops1990 3 жыл бұрын
Works for me thx. back to the master class ;)
@kozimwoo
@kozimwoo Жыл бұрын
THANK YOU , IT WAS USEFUL FOR ME !!!
@samgarg1461
@samgarg1461 4 жыл бұрын
Only video which helped me solving this problem
@rajeeell
@rajeeell Жыл бұрын
thank you so much. you saved my life
@pereiradiazcarloseduardo9960
@pereiradiazcarloseduardo9960 3 жыл бұрын
Muy buen video, me ayudo en resolver un dilema que tenia, estoy aprendiendo a programar el kotlin y fue de mucha ayuda gracias :D/ Very good video, it helped me to solve a dilemma I had, I am learning to program the kotlin and it was very helpful thanks : D
@davidfields11576
@davidfields11576 4 жыл бұрын
Denis, I'm trying to convert all the class projects over to use View Binding the new method and I'm having an issue in the following line: binding = ActivityMainBinding.inflate(LayoutInflator) the LayoutInflator is underlined in red and throwing the error in Studio v4.1.1 I have made all the other changes as required per your instructions The error says the following: Function invocation 'LayoutInflater(...)' expected None of the following functions can be called with the arguments supplied. (Context!) defined in android.view.LayoutInflater (LayoutInflater!, Context!) defined in android.view.LayoutInflater
@davidfields11576
@davidfields11576 4 жыл бұрын
OK, I found my mistake with this, the layoutinflater is supposed to start in lowercase L not uppercase L, so its supposed to be "binding = ActivityMainBinding.inflate(layoutInflater)" It looked like uppercase L in the video - hope that helps someone
@indianmind19
@indianmind19 3 жыл бұрын
@@davidfields11576 Thank you this comment helped me
@doublem524
@doublem524 3 жыл бұрын
Thanks! This was the solution I was looking for!
@tomlemes
@tomlemes 3 жыл бұрын
omg, after all these years, I can still get caught by a simple error like this!! Thank you David :)
@nkumaratech
@nkumaratech 3 жыл бұрын
@@davidfields11576 I was just about to quit... it looked like a capital L. Need to keep code font as Arial or Times New Roman hahaha
@alecprologg
@alecprologg 4 жыл бұрын
Binding works with includes as well 👍🏻
@jazzalchemy2
@jazzalchemy2 3 жыл бұрын
I'm taking your "The Complete Android 10 & Kotlin Development Masterclass" and this video comes up very early in the course, but I can't get the "best practice" code suggested (binding) to work.
3 жыл бұрын
Same problem here. This video mentions "binding.myTV.text" wich is not included in the masterclass.
@user-ss7wd2ev9e
@user-ss7wd2ev9e 4 жыл бұрын
Make more Android project courses on udemy! I am waiting for . You are Best teacher . Take my love ♥️.
@tutorialsEU
@tutorialsEU 4 жыл бұрын
We will! Did you check the new Firebase Course yet?
@user-ss7wd2ev9e
@user-ss7wd2ev9e 4 жыл бұрын
@@tutorialsEU Yes my dear densi ♥️ tomorrow I will enroll Android studio productivity master hopefully I will learn many stuff. Please make some clone app projects where people can learn how to make production level app.
@davidfields11576
@davidfields11576 4 жыл бұрын
@@tutorialsEU Denis, can you provide us with a link to the new Firebase course, I'm interested in it as well! Thank you!
@wahyu35
@wahyu35 3 жыл бұрын
ThankYouSOMUCH!!! THE BEST
@geekinnovativetech388
@geekinnovativetech388 4 жыл бұрын
thanks for the update
@quicksketch1617
@quicksketch1617 3 жыл бұрын
👍. How It Works when it's recyclerview and calls layout manager in the mainActivity?
@halilmertdeveli3846
@halilmertdeveli3846 Жыл бұрын
in this patch in android , setContentView is note defined , you should define this i'm just saying for the new user by the way thank you for this video
@zainablawal97
@zainablawal97 2 жыл бұрын
Hi @tutorialEu please can you make a tutorial on server driven ui ??
@IstwaKriminel
@IstwaKriminel 3 жыл бұрын
Thanks, you help me a lot 🇭🇹
@miguelangelromero77
@miguelangelromero77 2 жыл бұрын
Terrific!!! 😎
@tutorialsEU
@tutorialsEU 2 жыл бұрын
Thanks! I see you like our content! I want to invite you to our community of testers, where we give our courses for a quality check. Please send me an email to evgenia@tutorials.eu with the subject line: testers community and your name in the body and I will add you
@nurinwonderland
@nurinwonderland 2 жыл бұрын
Is there any way to control a button from another activity? For example if I am in the Main Activity and here I have functions which are necessary for me and also if there is another activity called as MainActivity2 and it has a Button and if I want to click this Button in MainActivity(not its own activity) because that functions necessary in this point. What should I do ? is it possible ?
@SvScibi
@SvScibi 4 жыл бұрын
Thanks you so much it helped me a lot
@tutorialsEU
@tutorialsEU 4 жыл бұрын
Thanks for your comment :)
@lokesharora4037
@lokesharora4037 2 жыл бұрын
thanks bro its work
@satyamgupta6030
@satyamgupta6030 3 жыл бұрын
thanks for showing this
@Animationcomedia
@Animationcomedia 3 жыл бұрын
Hi please I have this message display while I was trying to sync ( failed to resolve: com. google ) please how can I solve it? Thanks
@AryanvedhFromIndia
@AryanvedhFromIndia 3 жыл бұрын
if i still want to use kotlin-android-extensions, is there a way to set it by default? so i don't have to add dependencies in Gradle file in every project? thanks
@Nchernishov
@Nchernishov 4 жыл бұрын
sir, i am beginner, so you saved my ass!
@RomskieL
@RomskieL 4 жыл бұрын
I just noticed that if I use underscore in the UI element ID example id/btn_start, when accessed using binding it becomes camel case btnStart.
@tutorialsEU
@tutorialsEU 4 жыл бұрын
sweet. Thanks for the info. Never tried it :)
@thepatlagoon
@thepatlagoon 4 жыл бұрын
How would I do the btn_start with the binding method for the quiz app?
@RomskieL
@RomskieL 4 жыл бұрын
@@thepatlagoon if your id is btn_start then you can access it in viewbinding as binding.btnStart
@Wayofthelao
@Wayofthelao 3 жыл бұрын
I'm having some difficulties getting my first build to work and I can't get any response from anyone on the Q and A on the udemy course
@marcelwo4jedynki
@marcelwo4jedynki 3 жыл бұрын
thank you so much!
@dennisbaumann2708
@dennisbaumann2708 4 жыл бұрын
Hey Denis, with the new android studio version some things seem like they doesnt work like this anymore... I can't get my btn_start and et_name ID's to work properly... Do you have any idea?
@tutorialsEU
@tutorialsEU 4 жыл бұрын
Which of the three approaches are you trying?
@murml
@murml 3 жыл бұрын
Got an error "e: [...]\example\erstesprojekt\MainActivity.kt: (18, 47): Function invocation 'LayoutInflater(...)' expected" in line "binding = ActivityMainBinding.inflate(LayoutInflater)" if I try this for Lesson 15 of the Masterclass-Course. Anyone can help? Did it like shown in this video here. Used the binding method of course.
@murml
@murml 3 жыл бұрын
Found the problem: there seems to be a difference between LayoutInflater and layoutInflater (upper/lower case). Lower works, if someone else got the same problem. Why this is so i cannot explain.
@nullnull9506
@nullnull9506 3 жыл бұрын
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.currencyapp/com.example.currencyapp.MainActivity}: java.lang.NullPointerException: rv_home must not be null ================= Please, what is the cause of this error
@gappergob6169
@gappergob6169 4 жыл бұрын
Nice! Could you make video about custom view and compound view. There's not much video about that on youtube. Thanks 😊
@tutorialsEU
@tutorialsEU 4 жыл бұрын
Thanks for the input. I will look into that.
@VijayKumar-zz8pe
@VijayKumar-zz8pe 3 жыл бұрын
When I uses ADB :This error is coming The ADB binary found at C: \Users\hp\AppData\Local\Android\Sdk\platform tools\adb.exe is obsolete and has seriousperformance problems with the Android Emulator. Please update to a newer version to get significantly faster app/file transfer. Never show this again. OK Help please
@darrellleong4780
@darrellleong4780 3 жыл бұрын
LayoutInflator doesn't work anymore. It requires some kind of context.
@gamal39800
@gamal39800 3 жыл бұрын
thanks
@demoaccount7349
@demoaccount7349 3 жыл бұрын
5:38
@jazzalchemy2
@jazzalchemy2 3 жыл бұрын
The only one of these 3 versions that seems to work for me is the one that uses the following lines of code... In build.gradle : id 'kotlin-android-extensions' In MainActivity: import kotlinx.android.synthetic.main.activity_main.* class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) //val my.TV = findViewById(R.id.myTV) myTV.text = "Hola Muchachos!" Everything else fails.
@thinktank4070
@thinktank4070 7 ай бұрын
this update is also outdated now how to resolve this??
@zuhairbilal2222
@zuhairbilal2222 4 жыл бұрын
It shows an error :-- Plugin was not found in any of the following sources :
@abdurrahman_z
@abdurrahman_z 3 жыл бұрын
me too
@Revitalish
@Revitalish 3 жыл бұрын
The second approach, where need to add the line in gradle and then it should automatically suggest to import the right class in the activity - DOESN'T WORK in Android Studio Arctic Fox :( too bad, looks like the simplest approach
@lanchesternaanyane
@lanchesternaanyane 3 жыл бұрын
Can’t believe I actually understood this!😭
@hizzy1g392
@hizzy1g392 3 жыл бұрын
saved my ass :D ty
@bidyutmahanta85
@bidyutmahanta85 4 жыл бұрын
👍
@electron7373
@electron7373 3 жыл бұрын
Aha! That is why your example code did not work (just a small part of it anyway). thanks!
@joshuaamissah8275
@joshuaamissah8275 3 жыл бұрын
The course is out of date and befor you get to know that most of the code are not working you cannot also get refund
@tutorialsEU
@tutorialsEU 4 жыл бұрын
Become a PRO Android Developer withThe Complete Android & Kotlin Development Masterclass bit.ly/2KhMitI In the video above you saw a piece of my Android Masterclass or some updates, to get the full Masterclass use the link and switch your career 180 degrees bit.ly/2KhMitI What's inside the course? - Over 45 hours of high quality & high definition 1080p video content - The complete code with step by step guides (in the code itself). So either you follow along in the video, or you get right into the action in Android Studio yourself. - Loads of exercises that make sure, that the knowledge really sticks. - The best Android 10 app development course money can buy. You will build these amazing Android apps: **A Trello Clone, A Quiz App, A 7 Minute Workout App, A Weather App, A Drawing App** and more... See you inside the course!
@sterlingbrett8765
@sterlingbrett8765 3 жыл бұрын
I know im randomly asking but does anyone know of a method to log back into an instagram account? I was stupid lost my login password. I would appreciate any tricks you can offer me!
@coltonarchie9765
@coltonarchie9765 3 жыл бұрын
@Sterling Brett instablaster ;)
@sterlingbrett8765
@sterlingbrett8765 3 жыл бұрын
@Colton Archie thanks for your reply. I got to the site on google and I'm in the hacking process atm. Looks like it's gonna take quite some time so I will get back to you later with my results.
@sterlingbrett8765
@sterlingbrett8765 3 жыл бұрын
@Colton Archie It worked and I now got access to my account again. I am so happy! Thank you so much you saved my account :D
@coltonarchie9765
@coltonarchie9765 3 жыл бұрын
@Sterling Brett No problem :)
@iqtoon
@iqtoon 3 жыл бұрын
RIP kotlin 😢
@tutorialsEU
@tutorialsEU 3 жыл бұрын
I hope you mean KotlinX. As Kotlin still is well and alive. I also miss KotlinX. RIP
@Mohit-il9gx
@Mohit-il9gx 4 жыл бұрын
Android studio the buggest thing after release
@discoboy8169
@discoboy8169 4 жыл бұрын
Neither of them work properly. (
@tutorialsEU
@tutorialsEU 4 жыл бұрын
What exactly doesn't work?
@suche_cz
@suche_cz 2 жыл бұрын
why developing android app is so messy ... a lot of scopes and references are like a magic ... you don't know where they come from I am a python programmer where all variables are defined and imported clearly
@freebsdd
@freebsdd 2 жыл бұрын
Sorry, but You talk so long
@abdussamed107
@abdussamed107 2 жыл бұрын
is it a good practice to use onclicklistener like this? findViewById(R.id.blablaxml).setonclicklistener(new.............
@naymyo9991
@naymyo9991 3 жыл бұрын
thank you so much!
Android ViewBinding in 8 Minutes
8:59
Philipp Lackner
Рет қаралды 78 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,2 МЛН
Rust Data Modelling Without Classes
11:25
No Boilerplate
Рет қаралды 184 М.
View Binding vs Data Binding - Explained | Android Development
5:09
ViewBinding | Kotlin | Android Studio App
4:37
Easy Tuto
Рет қаралды 12 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН