Simple Explanation of RecyclerView in Android

  Рет қаралды 24,234

Brandan Jones

5 жыл бұрын

A simple explanation and animation of RecyclerView in Android. We discuss the build.gradle dependencies, layout, Adapter, ViewHolder, and collection. There is not source code in this video, but there is a hands-on example video with source code that follows this video.
github.com/discospiff/PlantPlacesMobile26
github.com/discospiff/PlantPlacesKotlin

Пікірлер: 75
@ThreadsX
@ThreadsX 5 жыл бұрын
Best Explanation ever, After 2 years i find out "what is exactly happens in RecyclerView ". Thank you so much!!!
@discospiff
@discospiff 5 жыл бұрын
Excellent! Glad it helped. I occasionally have to go back through my notes to remember how all of the parts work together. :)
@Kazner0h
@Kazner0h 9 ай бұрын
I'm so grateful for that animation. So many videos on here just show someone implementing a recycler view but not explaining what the components are, what they do, etc. It makes it feel impossible to intuitively understand these things to then use them intelligently.
@discospiff
@discospiff 9 ай бұрын
Funny, when I went from teaching in-person to teaching online, I had to find a way to mimic the dry-erase lessons I would do. I'm a big fan of animations, as I think it helps to visualize what's going on. Thanks for the feedback!
@leoncampa
@leoncampa 3 жыл бұрын
You have just made me understand a concept that I was failing to grasp for weeks due to poor explanation by my professors and textbooks. Thank you. I wish all code concepts could be explained in such a beautifully laid out visual manner.
@discospiff
@discospiff 3 жыл бұрын
Glad to hear the feedback - thanks! I used to explain things on a whiteboard in class. Now I find PowerPoint animations work well to explain concepts in a virtual format. :)
@logic_master950
@logic_master950 3 жыл бұрын
Same here
@zakkenjaneezou
@zakkenjaneezou 2 жыл бұрын
You did a better job explaining recycler views in 8 minutes than my professor with an hour-long lecture. Cheers!
@discospiff
@discospiff 2 жыл бұрын
Thanks! I tried explaining this many times myself... then realized that an animation does a better job than an explanation. Easier to visualize, and you can replay as you wish. I'm glad you found it helpful!
@progtom7585
@progtom7585 3 жыл бұрын
Im a beginner and tried to code this from scratch this morning, i nearly went bald from the effort. This video helped a lot explain the key concepts. Much better than any other video i watched. Thank you!
@discospiff
@discospiff 3 жыл бұрын
I'm very happy to hear it helped. If a picture is worth 1000 words, I believe an animation is worth 1000 pictures. :) recyclerview is great stuff. I'm sure you're building something great!
@rohan-rj1ft
@rohan-rj1ft 3 жыл бұрын
Where was this video until now? This is the best, clean, and easiest explanation of RecyclerView I have ever come across. To the point and don't need longer videos to understand this. Good one Brandan!
@discospiff
@discospiff 3 жыл бұрын
It's been here the while time. :) glad you found it.
@damercy
@damercy 3 жыл бұрын
Finally some good explanation of what exactly we're doing instead of straight up kotlin code. 🎉🙏
@kaderloop785
@kaderloop785 2 жыл бұрын
4 minutes in, I've understood so much more than my 2 hour lecture last week. Good job.
@discospiff
@discospiff 2 жыл бұрын
Thanks! I'm happy to know this helps. What is the most confusing part?
@chinaguy101
@chinaguy101 3 жыл бұрын
God, your explanation is so clear, and your accent is clear too, save me from hearing other's crap
@GiedrysRokas
@GiedrysRokas 3 жыл бұрын
Thank you very much for explaining it in less than 9 minutes. :)
@discospiff
@discospiff 3 жыл бұрын
Thanks for noticing. :) I do a lot of editing to make the videos as concise as possible.
@alexandred.4317
@alexandred.4317 3 жыл бұрын
Thanks for this explanation Mr Jones, greetings from Belgium !
@discospiff
@discospiff 3 жыл бұрын
Thanks for watching, and thanks for saying hello! I visited Belgium back in 2016... had a lovely time.
@defenderndefendern1568
@defenderndefendern1568 3 жыл бұрын
Thank you so much. This is on point. Great job!! Thank you for contributing this to the world
@discospiff
@discospiff 3 жыл бұрын
You're welcome! And I really appreciate the comment. It makes my day. "Knowledge is like open source software: it improves when it is shared."
@yusufmiftahudeen
@yusufmiftahudeen 9 ай бұрын
you definitely make things easier to understand with this animation.
@discospiff
@discospiff 9 ай бұрын
I'm happy to hear this! I say, if a picture is worth 1,000 words, an animation is worth 10,000 words. :) While we used RecyclerView for quite a long time in Android, LazyColumn in Jetpack Compose is becoming a popular alternative.
@meena7222
@meena7222 4 жыл бұрын
Thank you so much for making that animation to help with understanding
@discospiff
@discospiff 4 жыл бұрын
Thanks! I use animations in many of my videos, as it replicates what I would put on a dry erase/ chalk board in a traditional lecture. I also learn best from animations. :)
@hussainaqeel7371
@hussainaqeel7371 2 жыл бұрын
What an amazing explaination! The animation really did it for me!
@discospiff
@discospiff 2 жыл бұрын
I really lie animations. They help to demonstrate concepts.
@ibrahimylmaz8378
@ibrahimylmaz8378 Жыл бұрын
Its free and explicit, thank you!
@dre429
@dre429 3 жыл бұрын
Great Explanation and it was posted on my birthday!
@discospiff
@discospiff 3 жыл бұрын
Thanks! I have a few followup videos that show the code as well. And happy birthday!
@manishswami7512
@manishswami7512 3 жыл бұрын
Sir thank you So much .... I have been somewhat afraid to use Recycler view but now I am confident. Means a lot. Thanks again.
@discospiff
@discospiff 3 жыл бұрын
Outstanding! I hope you do something great with it.
@jackc87
@jackc87 3 жыл бұрын
Fantastic! Thank you so much for this.
@discospiff
@discospiff 3 жыл бұрын
I'm glad it helped! I tried to remember how recycler view works, and then decided it would be easiest to demonstrate it in a video.
@carolinamaciel4917
@carolinamaciel4917 3 жыл бұрын
Thanks for this video!
@discospiff
@discospiff 3 жыл бұрын
Glad it helped, thanks for the comment! It's a bit of a tricky concept to master, so I think an animation is a good way to visualize it.
@lyricsversion8189
@lyricsversion8189 3 жыл бұрын
Thank you, you’re awesome 👏
@discospiff
@discospiff 3 жыл бұрын
Glad it helped. Thanks for the comment!
@PATRICKCHUAD
@PATRICKCHUAD 2 жыл бұрын
This tutorial is amazing interesting. Thank you for sharing. Now I can visualize recycle view in android.
@discospiff
@discospiff 2 жыл бұрын
It's a tricky concept... and tricky concepts make for good animations. Thanks!
@platinumphonesandcomputers
@platinumphonesandcomputers 2 жыл бұрын
Good explanation especially that animation
@discospiff
@discospiff 2 жыл бұрын
Thanks! I'm glad you like the animation. I like to use those too demonstrate concepts in videos.
@sukruthag4584
@sukruthag4584 2 жыл бұрын
Best explanation ever
@discospiff
@discospiff 2 жыл бұрын
Thanks! It's a complicated concept, so I thought an animation would help. I'm glad you like it!
@TomButler
@TomButler 3 жыл бұрын
Thank you so much!
@discospiff
@discospiff 3 жыл бұрын
You're welcome! I'm glad it helped. The workings of RecyclerViews can be confusing, which was the motivation behind making this video. :)
@techtutorial2424
@techtutorial2424 3 жыл бұрын
Ts amazing illustration....
@discospiff
@discospiff 3 жыл бұрын
Thanks! If a picture is worth 1000 words, an animation is worth 1000 pictures. :)
@myleenwilliams6220
@myleenwilliams6220 2 жыл бұрын
thank you a ton!!!
@discospiff
@discospiff 2 жыл бұрын
You're welcome! Thanks for the comment. This is a complex topic, which is where an animation can help to explain, IMHO.
@paulndibe250
@paulndibe250 3 жыл бұрын
thank you so so much,
@discospiff
@discospiff 3 жыл бұрын
Glad it helped! Thanks.
@brucebane7401
@brucebane7401 3 жыл бұрын
amazing!!!
@discospiff
@discospiff 3 жыл бұрын
Thanks for watching! Glad it helped.
@user-cn4ls8xy7t
@user-cn4ls8xy7t 4 жыл бұрын
Thank you for this beautiful explanation Great job. If I have to implement a list of only buttons in my page is it a good idea to use a RecyclerView for this ? or better to create them static
@discospiff
@discospiff 4 жыл бұрын
Will the buttons change? Will the number of buttons change? Are the button clicks specific to a row? If so, use recycler view. If not, make them static. My friend Jonathan Davis made a great video on buttons in recycler views: kzbin.info/www/bejne/kHaoioysi9x9fbs
@user-cn4ls8xy7t
@user-cn4ls8xy7t 4 жыл бұрын
Thank you. The number of buttons is static. What I like in the in the RecyclerView is the self managing of scrolling. As a beginner I didn't yet know how to manage scrolling.
@artoslots
@artoslots 3 жыл бұрын
2020 DEPENDENCIES implementation 'androidx.recyclerview:recyclerview:1.1.0'
@user-rj3pu3yk6s
@user-rj3pu3yk6s 2 жыл бұрын
I have a list of items from the tones I want when I click on one of the items it plays a tone and the other item plays another tone I have prepared everything and done Click Listene and select it with the required item but I need to separate the items so that each item is separate by itself when pressed
@loveworksnoevil
@loveworksnoevil 2 жыл бұрын
Did u make an if then with variable, or textview equals
@nachiappans7030
@nachiappans7030 3 жыл бұрын
Is recycle layout is like drawing template with pen for tic tac toe and playing with pencil such that we can just erase the play after each game and reuse it in simpler term putting boxes in pen x and o in pencil if im wrong correct me
@discospiff
@discospiff 3 жыл бұрын
I like that analogy! Yes, spot on.
@gavenlrobertson7352
@gavenlrobertson7352 Жыл бұрын
Amazing! Question for you, how fast does it populate the list data? I notice when we start up the app its usually populated instantly with the first set of items im just curious on how it does it so quickly
@discospiff
@discospiff Жыл бұрын
A lot of that depends on the source of data itself. If it's coming over a network, there may be a delay. But if there's a local, in memory cache, and the device has enough memory to handle the application, the UI update should be fairly fast and smooth.
@stefanioan7569
@stefanioan7569 Жыл бұрын
My respect for your explaining and presenting. I am trying to find a way to teach recyclerView and explain a strategy for "learning how to learn", do you have any tips&trick? Also, how did you understand recyclerView? Ps: I think your work is amazing and many thanks for that!
@discospiff
@discospiff Жыл бұрын
Thanks! I find the best way to learn how to learn is to teach it to others. :) And the best way to teach is to make an animated presentation, as I've done here. That helps me to internalize it. One note, though... RecyclerView is starting to get replaced by LazyColumn in Jetpack Compose. Have a look at this video, which explains LazyColumn. It might be worth using, instead of RecyclerView. kzbin.info/www/bejne/nH2Vd5h-artpkNk
@Ray-Zah
@Ray-Zah 2 жыл бұрын
You sound like Mr. Vandresen.
@discospiff
@discospiff 2 жыл бұрын
Beavis and Butthead. Old school.
@logic_master950
@logic_master950 3 жыл бұрын
bosssssssssssssss hey bosssssssssssssssssssssssss