No video

RecyclerView with ViewBinding (replaces findViewById)

  Рет қаралды 8,095

Mafia Codes

Mafia Codes

Күн бұрын

#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! www.kite.com/g...
Note: View binding is available in Android Studio 3.6 Canary 11+.
FREE $100 credit @Digital Ocean: m.do.co/c/3208...
Patreon: / trulymittal
Subscribe: www.youtube.co...
ViewBinding: • View Binding, replace ...
GitHub (Tutorial): github.com/tru...
ViewBinding: developer.andr...
RecyclerView: 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

Пікірлер: 34
@studio2038
@studio2038 3 жыл бұрын
Nice video will explained it help me.
@maheshgharage8480
@maheshgharage8480 2 жыл бұрын
Way of explanation is great
@mafiacodes
@mafiacodes 2 жыл бұрын
Subscribe like share
@dilnaekio
@dilnaekio 3 жыл бұрын
Thank you for your video. No one except you give us clear informations about RecyclerView and Binding View on internet... Unbelievable :')
@philipowino-jofon
@philipowino-jofon Жыл бұрын
This tutorial has realy helped me. Thank you
@harishreddy8247
@harishreddy8247 4 жыл бұрын
thanks for good explanation and englis and voice clarity
@codinghooman
@codinghooman 4 жыл бұрын
Thank you brother for such nice tutorials. Can you make a room db tutorial with the multiple table with primary & foreign key connections ?? It will be very helpful for many people like me who are searching for a nice tutorial on this topic.
@mnico3017
@mnico3017 4 жыл бұрын
Nice job, It's very helpful.
@dfurrow01
@dfurrow01 3 жыл бұрын
Very helpful and allowed me to set mine up. Thanks!
@mdjahidulislam9205
@mdjahidulislam9205 3 жыл бұрын
thanks
@dennisgonzales9521
@dennisgonzales9521 4 жыл бұрын
Thanks for this!
@h.r.60
@h.r.60 4 жыл бұрын
Amazing.
@harishreddy8247
@harishreddy8247 4 жыл бұрын
super exxplanation sir please do videos on databing and show diiference databinding and view through code
@mafiacodes
@mafiacodes 4 жыл бұрын
Okay, subscribe like share
@maheshgharage8480
@maheshgharage8480 2 жыл бұрын
Sir great explanation, Are there any vedio on learning java
@iftak01
@iftak01 3 жыл бұрын
you are God!! you have this topic with different widgets and view thank you!
@Sudhindra3000
@Sudhindra3000 4 жыл бұрын
Thanks for the Video. Can you make a video on Shared Element Transition in Fragments using Navigation Component. There are not a lot of resources on this topic. And the ones which are available are only in Kotlin. Can you do using Java. Thanks.
@mafiacodes
@mafiacodes 4 жыл бұрын
Will try to make.
@iamshakiransari
@iamshakiransari 3 жыл бұрын
What editor theme you use?
@rogercolque
@rogercolque 4 жыл бұрын
Nice. I saw in some tutorials that use a constructor in adapter to pass the List instead the method updateMovieList ? this is better ? or works only with viewbinding
@mafiacodes
@mafiacodes 4 жыл бұрын
Works with or without viewbinding. The choice is urs I also prefer it this way.
@dennisgonzales9521
@dennisgonzales9521 4 жыл бұрын
Constructor better
@mafiacodes
@mafiacodes 4 жыл бұрын
Any specific reason?
@ashrafmakandar3370
@ashrafmakandar3370 4 жыл бұрын
please do a mvvm crud video with firebase and java
@somethingviral1937
@somethingviral1937 4 жыл бұрын
Bro dont know how u have less followers....u deserve more buddy....but any way app ke learning ho rahi hai....can u tell me how to get numbering recycler view
@mafiacodes
@mafiacodes 4 жыл бұрын
numbering as in ?
@somethingviral1937
@somethingviral1937 4 жыл бұрын
@@mafiacodes thanks for fast reply....its done now i tried and it worked
@mehulbisht9708
@mehulbisht9708 4 жыл бұрын
how do you have that multicolored text, i mean i don't think me using kotlin makes it unavailable in all 3 themes, darcula , intelliJ and high contrast , is that a custom theme you are using ? EDIT : also, why in 2020 would you still make android tutorials in java and not kotlin ? TIP : You should do a poll i think , most people will vote for Kotlin tutorials !!
@mafiacodes
@mafiacodes 4 жыл бұрын
Its Google's developer theme
@sno-oze
@sno-oze 4 жыл бұрын
@@mafiacodes may I ask you to share link for download this theme? thanks
@mehulpanchal7539
@mehulpanchal7539 4 жыл бұрын
Sir how to get rid from this error occur while debugging plez help......... E/Exception is: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference
@mafiacodes
@mafiacodes 4 жыл бұрын
You can NEVER get this exception unless ur using findvirebyid, incase ur getting rebuild ur project. If issue doesn’t resolve share code on GitHub
@mehulpanchal7539
@mehulpanchal7539 4 жыл бұрын
@@mafiacodes thanks you sir 😊
@kishortalukdar4441
@kishortalukdar4441 3 жыл бұрын
Ar a yr...thora slow bolo...na...
Creating the Options Menu
15:42
Mafia Codes
Рет қаралды 4 М.
Data Binding with Recycler View (including Button clicks)
20:22
Mafia Codes
Рет қаралды 20 М.
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 46 МЛН
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 20 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 159 МЛН
How to Use View Binding With Recycler View Adapter
26:38
tutorialsEU - Android
Рет қаралды 7 М.
Recycler View with complete explanation | Android
24:56
Mafia Codes
Рет қаралды 41 М.
Android ViewBinding in 8 Minutes
8:59
Philipp Lackner
Рет қаралды 76 М.
Popup menu inside a RecyclerView
12:28
Mafia Codes
Рет қаралды 20 М.
Урок 8. Android Data Binding - основы
10:01
Start Android
Рет қаралды 24 М.
View Binding in Android Development
9:05
Codes Easy
Рет қаралды 2,2 М.
LiveData Explained - Android Architecture Component | Tutorial
12:12
View Binding vs Data Binding - Explained | Android Development
5:09
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 46 МЛН