RecyclerView OnClickListener (Best practice way)

preview_player
Показать описание

In this video I show you the best practice way to attach an OnClickListener to a RecyclerView and determine what list item was clicked.

➤Learn to code like me:

➤Source Code:
Рекомендации по теме
Комментарии
Автор

Hey Mitch, just wanted to say I was stuck on a problem for a long time and your video (especially the part where you took us back and walked through everything we did) was super helpful. I was able to resolve my problem after re-approaching it with a clear head. Thanks for the guidance!

klekaelly
Автор

Mitch, I definitely appreciate your content. Software/firmware development is nothing new to me, but I recently got into app development, and this series has helped tremendously! I was having difficulty with changing the TextView text color within my ViewHolders in the RecyclerView, but was eventually able to figure it out with your interface examples on the Note RecyclerView series. Thank you so much.

jarrodthoma
Автор

i have a project due in 3 days and your channel is saving my life!! thank you so much for this!!! never clicked on subscribe this fast!!!

milkjpg
Автор

Explaining what you code was doing as you typed, and at the end to summarized really helped!! Awesome tutorial!!

josepenasanchez
Автор

Had to come back to this video to say how much I appreciate what you do,
I have used this in my recyclerView app a long time ago and now I was looking for a way to fix a similar issue in different java swing application where I used the same concept with an interface and it works as a charm. Man you really have no competition when it comes to this stuff.
Wish you pleasant holidays mate, you deserve it

kristians
Автор

Thanks a lot ❤️
This method is called inter fragment communication and we use it when we want our fragment to communicate with the activity...

moazelsawaf
Автор

This was such a god sent....Thank you for uploading this. Such an elegant solution.

huh_wtf
Автор

God bless you Mitch! It works like a charm!

apartmentbluerose-trogir
Автор

Finally helped me get my code up and running, migrating everything from Java to Kotlin was pretty seamless but the Adapter definitely gave me a couple migraines. Thanks!

GamerChris
Автор

Mitch, I have a degree in mobile app development. I wish I would have seen this while in school. It helped a lot and will continue to help a bunch. Thank you for all you do.

joeypeters
Автор

Man i have been racking my brain trying to figure out why my click listener wasn't passing variables to a new activity. Thanks so much my dude.

samusaran
Автор

Tried to get a recyclerview click listener working for hours - this tutorial finally cracked it - Thank you!

ianrknowles
Автор

Just fantastic! Finally someone who can break down a myriad of core topics into a one simple brain folder!!

ericsmith
Автор

Omg I have learned more in this video than searching through a thousand forums, thank you very much

hugocc
Автор

Thank YOU!!!! I changed it a little to apply to a fragment but after hours of finding shite tutorials it's finally working! I'll put your name on my bachelors degree LOL

chloegeldhof
Автор

Coding with Mitch & Coding in Flow are the 2 best tutors on YouTube.

Richie_
Автор

I know the video's a couple of years old but I just really need to say that this was a great video/explanation, thank you so much, helped out a lot, pura vida 🙌

matthewmirandaa
Автор

That's great, dude! When I was finding on Russian chanels this info, I didn't do that, but when I saw your video, I understand that no metter what I need, I have to search everything on English chanels at ones!

vladkondratiuk
Автор

Man you are the best, keep up you are saving the world.

dignitymashoko
Автор

Thank you so much. I've got a huge project rn and the only thing that was troubling me is communication between the recycler view and the Activity that uses it. Thank you so much! It fixed my issue

WftYT