RecyclerView with ViewBinding (replaces findViewById)
Mafia Codes Mafia Codes
44.5K subscribers
8,143 views
154

 Published On Apr 23, 2020

#StayHome #WithMe
In this video you will learn how to use #viewBinding with #recyclerView. We will use the binding class inside the constructor of viewHolder to create new view holders, and then bind the relevant data using view binding.

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! https://www.kite.com/get-kite/?utm_me...

Note: View binding is available in Android Studio 3.6 Canary 11+.

FREE $100 credit @Digital Ocean: https://m.do.co/c/3208f08b3324
Patreon:   / trulymittal  
Subscribe: https://www.youtube.com/c/yourstruly2...

ViewBinding:    • View Binding, replace findViewById an...  

GitHub (Tutorial): https://github.com/trulymittal/Recycl...
ViewBinding: https://developer.android.com/topic/l...
RecyclerView: https://developer.android.com/guide/t...

———————————————
More useful videos
———————————————
#RecyclerView:    • Recycler View with complete explanati...  
#ViewModel:    • View Model | Live Data | Android Jetp...  
#NavigationComponent:    • Navigation Component | Android Jetpac...  
#WorkManager:    • Work Manager | Android Jetpack | Intr...  
#Retrofit:    • RETROFIT Tutorial (v 2.5.0) | HTTP Cl...  
#CollapsingToolbar Layout:    • Collapsing Toolbar Layout | Android S...  
#BottomNavigation View:    • Bottom Navigation View | Android Stud...  
KeyframeAnimations:    • Keyframe Animations with ConstraintLa...  
NightMode:    • Night Mode | Dark Mode | Android 🌙  
ButterKnife:    • Butter Knife | Field and method bindi...  
SplashScreen:    • Splash screen | Launcher Activity | A...  
Singletons:    • Singletons | What When How 🔥  
Pull to Refresh in RecyclerView:    • Pull to Refresh in Recycler View | An...  
On item click using Interface in RecyclerView:    • RecyclerView item Click using Interfa...  
Swipe gestures in Recycler View:    • Swipe gestures in Recycler View | And...  
Drag and drop Reorder in Recycler View:    • Drag and drop Reorder in Recycler Vie...  
Filter using #SearchView in RecyclerView:    • Filter RecyclerView using Search View...  
MultiView RecyclerView:    • Multi view RecyclerView | getItemView...  

———————————————
Other useful Playlists
———————————————
Android:    • Android  
#Firebase:    • Firebase | Build a Notes App  
#RestAPI (#NodeJS and MongoDB):    • REST API using NodeJS and MongoDB  
Docker:    • Docker  
MongoDB:    • Learn MongoDB in 50 minutes (Crash Co...  
Html/Css/Js:    • HTML / CSS / JS  
Challenges:    • Challenges  

———————————————
What I use
———————————————

Mouse: https://amzn.to/2O9RJtu
Keyboard: https://amzn.to/2qxajCU
Keyboard 2: https://amzn.to/2XDWH4X
Monitor: https://amzn.to/2pDg7dH
Processor: https://amzn.to/347WWIb
RAM: https://amzn.to/2QEkUqw
Graphics: https://amzn.to/33aBrF4
Microphone: https://amzn.to/2DabdI9

#yoursTRULY #tutorial #howto #android

show more

Share/Embed