View Binding, replace findViewById and can be used both with Java and Kotlin
Вставка
- Опубліковано 15 жов 2024
- #StayHome #WithMe
#Viewbinding is a feature that allows you to more easily write code that interacts with views. Once view binding is enabled in a module, it generates a #bindingClass for each XML layout file present in that module. An instance of a binding class contains direct references to all views that have an ID in the corresponding layout.
In most cases, view binding replaces #findViewById.
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! www.kite.com/g...
FREE $100 credit @Digital Ocean: m.do.co/c/3208...
Patreon: / trulymittal
Subscribe: www.youtube.co...
GitHub (Tutorial): github.com/tru...
ViewBinding: developer.andr...
---------------
More useful videos
---------------
#RecyclerView: • Recycler View with com...
#ViewModel: • View Model | Live Data...
#NavigationComponent: • Navigation Component |...
#WorkManager: • Work Manager | Android...
#Retrofit: • RETROFIT Tutorial (v 2...
#CollapsingToolbar Layout: • Collapsing Toolbar Lay...
#BottomNavigation View: • Bottom Navigation View...
KeyframeAnimations: • Keyframe Animations wi...
NightMode: • Night Mode | Dark Mode...
ButterKnife: • Butter Knife | Field a...
SplashScreen: • Splash screen | Launch...
Singletons: • Singletons | What When...
Pull to Refresh in RecyclerView: • Pull to Refresh in Rec...
On item click using Interface in RecyclerView: • RecyclerView item Clic...
Swipe gestures in Recycler View: • Swipe gestures in Recy...
Drag and drop Reorder in Recycler View: • Drag and drop Reorder ...
Filter using #SearchView in RecyclerView: • Filter RecyclerView us...
MultiView RecyclerView: • Multi view RecyclerVie...
---------------
Other useful Playlists
---------------
Android: • Android
#Firebase: • Firebase | Build a Not...
#RestAPI (#NodeJS and MongoDB): • REST API using NodeJS ...
Docker: • Docker
MongoDB: • Learn MongoDB in 50 mi...
Html/Css/Js: • HTML / CSS / JS
Challenges: • Challenges
---------------
What I use
---------------
Mouse: amzn.to/2O9RJtu
Keyboard: amzn.to/2qxajCU
Keyboard 2: amzn.to/2XDWH4X
Monitor: amzn.to/2pDg7dH
Processor: amzn.to/347WWIb
RAM: amzn.to/2QEkUqw
Graphics: amzn.to/33aBrF4
Microphone: amzn.to/2DabdI9
#yoursTRULY #tutorial #howto #android
Thanks man. For the quality content you deliver, I don't mind watching the adverts during the vids.
Many tutorial I watched but yours is the best
Excellent. Concise and well explained.
Thank you. Learned a new thing today
भावा ! आता तर राडाच. खतरनाक ! i was eagerly waiting . Please Make Videos On android background Service.
Thanks for an easy content.
Thank you 💓 doubt got resolved
I used view binding but main activity xml wasn't inflating. Either it was giving exception or it was not showing layout on phone. I also added a custom style in manifest file to hide Action bar in main activity only. But after hours of experimenting I removed view binding and used old way of setcontentview(R.layout.activity_main) and it worked.
can you please confirm this?
BaseActivity layouts didn't work properly in OtherActivity which extends baseActivity . Any solution sir?
Share code on GitHub
Hey can you please make a tutorial on How we use Geofire and what's the purpose of using Geofire over other available options
Hi Bro! what is the font you use in this theme? looks cool 🔥🔥🔥
Operator mono
great tutorial, thanks!
You're welcome, Subscribe Like Share
GREAT VIDEO!
Glad you enjoyed it
very easy and useful. thank you!
I don't understand why google developers could not think about this before, so we must always learn new methods, make us believe that there is a fake evolution of software programming. I mean come on! didn't Google developers noticed before that findViewById can cause runtime errors?? didnt they noticed that using a costumed list was very complicated?
Thank you sir. Sir please more video on viewbinding
will make...
@@mafiacodes thank you sir for your reply
I want to know one thing. if you see in the MainActivity file. there are a date and file size. how to do that
Nice contents, keep making video sir.
Great work as always :) ,
Do you have videos on data binding too ?
will make in future...
gracias bien explicado rapido y sencillo
I enabled the activity binding but when i type ActivityMainBinding in Mai activity file i got error
super explanation please show me difference viewbinding and databinding in one video
I love you from France
thank you sir
Is this similar to the Kotlin feature that you don't need findViewById()
Works with fragments
yes it does...
ActivityMainBinding class is not generating in android gradle plugin veraion 3.6.1
Try rebuilding ur project and why u wanna use this gradle plugin?
@@mafiacodes wt u asking why i wanna use 3.6.1 u r asking na bro or u saying i ahould have to use 3.6.2 gradle version
This video do not contain Kotlin Code
Yes it contains JAVA code
thanks bro
good tutorial
Can we use viewbinding in gradle plugin version 3.6.1
I don't see any use of using gradle 3.6.1 but you can try that, the basic requirement is Android Studio 3.6 Canary 11+
Subscribe like share...
thanks sir please do more videos
please try to multiple video it's understandle good ide text color
Thnks sir
Bruh , what's the font name ??
operator mono
@@mafiacodes Really thank you, your rply is way faster than my gradle sync time : )
Every thing is fine. Aap itna fast kyu bolte hai. Kuchh point samajh me he nahi aata
Next time will keep this thing in mind
I'm the 69th viewer!
Hey can you please make a tutorial on How we use Geofire and what's the purpose of using Geofire over other available options