View Binding with RecyclerView Adapter - Android Studio Tutorial

preview_player
Показать описание
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN

🐱‍👤 Wanna become a member? Join!

📸 Instagram

In this video I'm going to show you how to use View Binding with RecyclerView Adapter. Many of you already know how to use View Binding with Activities and Fragments, but how should we use it with RecyclerView Adapter? Well, watch the video to find out!
Рекомендации по теме
Комментарии
Автор

I've been struggling to bind views until I watched this video. Good work dude !

ericgacoki
Автор

The autogenerated class of viewBinding was new for me. I was reading few StackOverflow answers, but wasn't sure where this class came from. Thanks for the video!

jaineelmamtora
Автор

Been finding this for a few hours. Thank you so much

kenyong
Автор

I've been trying for days, thank you very much

bekirahmetli
Автор

you video is to the point, i scrolled many videos on YouTube finally, I got what exactly I'm looking for in your video, thank you so much

pradeep
Автор

Thank you!!! you solved this problem for me... a lot of outdated tutorials before finding this video

wdabrilvi
Автор

Short but gold. Easy to implement - thanks.

Henkkagg
Автор

Wow. Thank you so much. Simply explained

ottorocket
Автор

There is everything what i need. I fall in love this tutorials. Thanks so much.

ErtBaran
Автор

You are a lifesaver thank you soooo much my hero!

keepr_Valorant
Автор

Your explanation on video ia great...., Thanks for help me undestand

galihal
Автор

This is great! A much needed video
Thank you♥️

Could you please also make a video on how to make a recycler view with diffUtil and view binding together?

ShubhamSinghMusic
Автор

Nice, can plz share a way to use view binding in pager adapter? Thanks

relaxtime
Автор

Thank you. I have a question about the mainActivity, when the layout it's called to use layout manager it's calling sythetic. How to call the recyclerview without sythetic?

quicksketch
Автор

do we need to destroy the binding objects when the view is being destroyed like we do in the activity or fragment. (binding = null)

anmolsinghsahi
Автор

Yo, im the first this time. So excited :P

re_allyedge
Автор

That is nice
Can you please make video for dagger and hilt !?

surabhidixit
Автор

Always nice things to learn here 😊
Can you do a Kotlin multiplatform part on your YouTube Channel ?

dibbo-mrinmoysaha
Автор

just amazing video dude! thank you very much for this video! ♥ +1 Subscriber.

mockingspyhd
Автор

Hello, as long as you talking about ViewBinding I got in trouble implementing it in one of the classes for ROOM implementation because in the original tutorial guy using synthetic extension, so he could access it with ease. Where I try to use ViewBinding and I get into trouble. I getting

must not be null
at
at


and yet it, not a name or typo, my guess I did not implement ViewBinder correctly so it does not hold a reference.

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import
import com.example.roomtutorail10.R
import

10
11 class NoteAdapter(private val notes: List<Note>) :
12 {

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): NoteViewHolder {

return NoteViewHolder(
LayoutInflater.from(parent.context).inflate(R.layout.note_layout, parent, false)

)
}

override fun onBindViewHolder(holder: NoteViewHolder, position: Int) {

23
24 ---- var title =
25 title = notes[position].title

= notes[position].note
}

override fun getItemCount() = notes.size


class NoteViewHolder(val view: View) :
}


Could you help me out in here, please? I like to understand why or know more details about it.
PS is the really solid examples for ROOM? I need to understand the whole process bit by bit not just copy it and modify whatever I needed. If you know some books and websites with it please share.

And thank you.

Effectivebasketball