No video

Android RecyclerView Tutorial - In Depth Guide incl. Different View Types

  Рет қаралды 41,537

tutorialsEU

tutorialsEU

Күн бұрын

🚀 Android & Kotlin Masterclass - Become a serious Android app developer with our best-selling masterclass: bit.ly/3PaKdhS
In this Android RecyclerView Tutorial, you will learn everything you need to know about RecyclerViews.
We have also created an article on our blog, going over this in more depth. Here you can also download the code for this video.
tutorials.eu/a...
You will learn about RecyclerViews but also about how to use different ViewTypes and how to customize your list items using XML.
Working with RecyclerView in Kotlin
RecyclerViews in Android, are one of the most interesting concepts to become a master in Android. There’s a lot of different examples and implementations across the internet. Learn first, what a RecyclerView is before implementing it.
What is a RecyclerView?
A RecyclerView is a flexible view for providing a limited window into a large data set. It is essentially a ViewGroup of containers called ViewHolders which populate a particular item. RecyclerView is an extensive Android class to provide a flexible UI. A great benefit of using RecyclerViews is that you’re able to efficiently reuse views instead of managing items that aren’t even visible to a user.
Why we use RecyclerView?
In the past Android used to use ListView or GridView classes for displaying lists. The RecyclerView can be thought of as a combination of a ListView and a GridView. However, in a RecyclerView, there are features that separate your code into maintainable components while also enforcing memory-efficient design patterns.
How is it be better than ListViews and GridViews?
ListViews and GridViews are comparatively slower than RecyclerViews.
Layouts in RecyclerView
The RecyclerView changed everything which was used in the ListView and GridView. RecyclerView still uses an Adapter to act as a data source. However, you have to create ViewHolders to keep references in memory.
To provide a new view, RecyclerView either creates a new ViewHolder object to inflate the layout and hold those references, or it recycles one from the existing stack.
This is it why it’s called a RecyclerView!
The Views in RecyclerView comes with default animations that you don’t have to create or add yourself.
RecyclerView requires a ViewHolder, the RecyclerView knows which animation to apply to which item and adds them as required. You can also create your own animations and apply them as needed.
The most important and interesting component of a RecyclerView is its LayoutManager. This object positions the RecyclerView’s items and tells them when to recycle items that have transitioned off-screen. The ListView used to do this work by itself.
The RecyclerView has broken out of this functionality to allow for different kinds of layouts: Vertical, Horizontal, Grid, Staggered, or your own!
There are three types of Layout Managers by default:
LinearLayoutManager: Positions items to look like a standard ListView.
GridLayoutManager: Positions items in a grid format similar to a GridView.
StaggeredGridLayoutManager: Positions terms in a staggered grid format.
RecyclerView implementations require:
A list of data objects to work with.
An XML file of the view item.
An adapter to bind that data to the views.
A ViewHolder to populate the UI view from the XML item file.
Now we are familiar with what RecyclerView is and its basics, let’s get into the implementation.
About this Video:
You learn how to use RecyclerViews in Kotlin. This is important for Android App Development. This Android RececlyerViews Tutorials is the only one you will ever need. RecyclerView Android is generally used by most of the important Apps out there. We are going to build RecyclerView Android Studio. As in this tool it is best to create Android Apps. RecyclerView Adapters are also important, when it comes to making a ListView kind of thing. Basically we are going to make an Android ListView and an Android GridView. Therefore we are going to use the Android LayoutManager.
tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.
Stay tuned and subscribe to tutorialsEU: goo.gl/rBFh3x

Пікірлер: 62
@Sujoy2811
@Sujoy2811 4 жыл бұрын
Sir, Your udemy android course is great. Quality content with low price. It was first that I bought a paid course after watched that KZfaq 7+ hrs video.... Thank you sir for providing great courses....
@tutorialsEU
@tutorialsEU 4 жыл бұрын
Thanks Sujoy, I'm happy you like it. It is my mission to help as many people as possible to live their dream and become programmers :)
@punyan775
@punyan775 11 ай бұрын
I'm only 2 minutes in and I already have a better fundamental understanding of RecyclerViews, thank you. I'm a visual learner, and the problem with the documents I'm reading and information online is that it sounds so abstract to me because they don't do a good job of describing how things work visually. Thanks, I subscribed
@tutorialsEU
@tutorialsEU 2 жыл бұрын
🚀 Android & Kotlin Masterclass - Become a serious Android app developer with our best-selling masterclass: bit.ly/3PaKdhS
@paulvickers8059
@paulvickers8059 2 жыл бұрын
Is there anything with room and firebase in it?
@magnusjansenvanvuuren
@magnusjansenvanvuuren 3 жыл бұрын
This video made me stop crying in its first 5 minutes. you are a hero
@ArifKhan-jc2og
@ArifKhan-jc2og 4 жыл бұрын
This is really a complete depth video related to the RecyclerView concept, which really helps the beginner and can cleat there all the doubts. Thanks
@ZahraAli-qo7xk
@ZahraAli-qo7xk 2 жыл бұрын
Thank you so much for your video...it lessens my two days hardship
@spatidar8202
@spatidar8202 4 жыл бұрын
After watching this video, I think it is a very in-depth video about android & Kotlin. I am not good at Kotlin but Denis I definitely follow the tutorial and will make awesome App.😎😜
@amanuelabiy8914
@amanuelabiy8914 3 жыл бұрын
Thank you very much, you made it simple
@captalextamonan6641
@captalextamonan6641 3 жыл бұрын
Finally got there at the end. Many thanks for this video, looking forward to the next one
@TheFlexath
@TheFlexath 2 жыл бұрын
thanks sir , I love watching your videos . Great !
@nima7605
@nima7605 Жыл бұрын
You are one of the best ♥
@nayanasenavirathna8303
@nayanasenavirathna8303 Жыл бұрын
Your videos are superb with excellent explanation🔥
@AmitPatel-oe5jl
@AmitPatel-oe5jl 4 жыл бұрын
Great Explanation. Best video for a beginner like me in Android and Kotlin. Thanks, Tutorials.Eu
@johnsnow1197
@johnsnow1197 4 жыл бұрын
Thanks tutorialsEU. this is very help full for me understanding RecyclerView. good explanation.
@muhammedrabee8234
@muhammedrabee8234 3 жыл бұрын
You nail it man. Great job
@bardus_hobus
@bardus_hobus 2 жыл бұрын
I'm 12 minutes in, and loving your tutorial already. Liked the video and may consider purchasing your course :)
@SketchIDE
@SketchIDE 5 ай бұрын
Make a full video tutorial related Create File and retrive in recyclerview and that folder Store in internal storage and inside folder we can create text.file that text file store in internal device etc please make video about this topic
@fadzriangibran799
@fadzriangibran799 4 жыл бұрын
Thank man
@ziadhemmar7256
@ziadhemmar7256 2 жыл бұрын
This was a great tutorial, Thank u so much Sir
@Blackops1990
@Blackops1990 2 жыл бұрын
Thx boss! worked 100%
@LaurinusPonpon
@LaurinusPonpon 3 жыл бұрын
Thanks so much. You saved me!
@thahaziq97
@thahaziq97 3 жыл бұрын
Thank you !! Really easy to understand
@tutorialsEU
@tutorialsEU 3 жыл бұрын
I'm happy I could help
@matheuscampos2566
@matheuscampos2566 2 жыл бұрын
tnx !!!!!!!!!!!!!!
@dan1523
@dan1523 3 жыл бұрын
How do you use view binding in onBindViewHolder?
@streetozvuchkatj
@streetozvuchkatj 2 жыл бұрын
I need this answer too, anyone?
@user-pf6th7oo5m
@user-pf6th7oo5m 3 жыл бұрын
Good explanation, thanks!
@ashekmahmud5095
@ashekmahmud5095 2 жыл бұрын
Very nice absolutely amazing vedio ❤️💗
@kingfisher3791
@kingfisher3791 3 жыл бұрын
Ur videos are really awesome bro
@mileeparsaniya5891
@mileeparsaniya5891 4 жыл бұрын
I like the way you explain each topic in detail. can you create a video about uploading the android app on the play store?
@tutorialsEU
@tutorialsEU 4 жыл бұрын
Hi Milee, yep will upload it this Friday.
@YarnellCrew
@YarnellCrew 4 жыл бұрын
First off I would like to say I love watching your videos, you do a fantastic job of explaining everything. After watching this video I went out and bought your master class and it has been great so far. I do have a quick question about the recyclerview. Say for example you were creating a scorecard and you want to be able to scroll both directions because the columns and rows would both be off the screen. Would you just have the recyclerview scroll one direction and have that inside a scrollview that would scroll the other direction or would that not work? Thanks again for doing what you do.
@tutorialsEU
@tutorialsEU 4 жыл бұрын
Good question. Now that you bought the full course You will learn to build something similar when creating the Trello Clone. Because there you have a list, which is scrollable vertically within a horizontally scrollable view.
@allincooking6986
@allincooking6986 3 жыл бұрын
The video was really helpful, thank you for explaining everything clearly. Do you have any videos about Android Navigation on KZfaq?
@llothar68
@llothar68 Жыл бұрын
Wish i could find a tutorial about how to write a RecyclerLayoutManager
@terlanabaszade9221
@terlanabaszade9221 2 жыл бұрын
Thank you much Sir. How i can get range? For examle from 400 to 1000 in recycvlerView const val
@md.shorifulhasan3149
@md.shorifulhasan3149 2 жыл бұрын
you should write code and teach us to step by step
@MegaBabyRawr
@MegaBabyRawr 2 жыл бұрын
Good video thanks
@ahamedhocayen8709
@ahamedhocayen8709 2 жыл бұрын
Nice video beri nice video
@hsksearch3
@hsksearch3 3 жыл бұрын
Great!! Thank you
@tutorialsEU
@tutorialsEU 3 жыл бұрын
You are welcome!
@adriennekline5934
@adriennekline5934 Жыл бұрын
Holder.tvItem.text = item is giving me an error indicating that it is an unresolved reference. Any help?
@iulia-mihaelamacovei5971
@iulia-mihaelamacovei5971 Жыл бұрын
idk if you solved it but maybe someone has the same problem now. I had the same error beacuse i didn't have the view binding enabled. I actually tried to enable it but idk why it still doesn't work so i just used findViewById until i can figure out why it doesn't work
@jenniferr3204
@jenniferr3204 Жыл бұрын
You said to add dependency but the screen moves too fast and you didn't explain how to add dependency
@Back2Pal
@Back2Pal 2 жыл бұрын
Thanks for tgis video. If i have rtl language how to make recycleview change it's derictiin to rtl or ltr according to the language direction? Or it will change the direction automatically? Thanks in advanced
@kohlishiva2135
@kohlishiva2135 Жыл бұрын
Sir., I made a recycler view which works fine.. But I need to maximize into bigger size when user clicks on a particular item on recycler view with its own details. How can this be achieved.?
@jamesedwards9054
@jamesedwards9054 3 жыл бұрын
Can you do tutorials on how to better read the android developers website. Thanks.
@ishrathossain9678
@ishrathossain9678 2 жыл бұрын
good video
@MerStudiosYT
@MerStudiosYT 3 жыл бұрын
I have a problem. Instead of viewtype A inserting a between two positions of viewtype B, viewtype A is replacing a position in viewtype B. Therefore, I have 1, 2, 3 in viewtype B and I want to insert D from viewtype A, so I can have 1, 2 , D, 3. What am getting right now is 1, D, 3. Any ideas why? Thanks in advance.
@yuvarajanm2059
@yuvarajanm2059 2 жыл бұрын
Hi bro .. Love from India.. Your videos are awesome. I learnt a lot from u. I have a doubt too.. At 39:10. Actually we are passing viewtype as parameter for constructor for datamodel right.. Then it belongs to item in this case. Then how do u say viewtype instead of item.viewtype ..
@md.shorifulhasan3149
@md.shorifulhasan3149 3 жыл бұрын
your Masterclass link is not opening
@alinavevel9522
@alinavevel9522 2 жыл бұрын
I NEED THE SAME BUT WITH DATABINDING!!!!!
@tutorialsEU
@tutorialsEU 2 жыл бұрын
Got that on our list
@isown8131
@isown8131 2 жыл бұрын
note: 14:45
@kratom82
@kratom82 3 жыл бұрын
Very nice tutorial, but having some "small" issues. 'kotlin-android-extensions' is deprecated. I am using Android Studio 4.1.1 and seems to be Android 11 now. Any clues how to fix that or did you talk about that in your course and maybe tell me in which chapter i can find the information. Greetings
@SmarkDepper
@SmarkDepper 3 жыл бұрын
Install a plugin called "KTXHelper" in the Plugins screen. Search it in Plugin Marketplace. Install it in your IDE. Restart, then just add the plugin following the instructions in the description of the aforementioned plugin. Just add a row in the dependency module. Finally, resync Gradle. Good luck.
@magicalhats
@magicalhats 2 жыл бұрын
Hmm... might want to add java or kotlin in the title.
@TheMewzak
@TheMewzak 2 жыл бұрын
Jetpack implementation has really put a stump in this :(
@ashekmahmud5095
@ashekmahmud5095 2 жыл бұрын
Valo
@jcayournewstyle182
@jcayournewstyle182 3 жыл бұрын
Too bad, it seems like a good video but it's in Kotlin
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 133 М.
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 4,2 МЛН
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 14 МЛН
How does RecyclerView work internally?
28:39
Native Mobile Bits
Рет қаралды 2 М.
Is LEARNING WPF still WORTH it in 2023?
10:59
tutorialsEU
Рет қаралды 46 М.
RecyclerView (Kotlin Beginner Example)
39:22
CodingWithMitch
Рет қаралды 71 М.
Android ViewBinding in 8 Minutes
8:59
Philipp Lackner
Рет қаралды 76 М.
Building a scalable, modularized, testable app from scratch
21:31
Android Developers
Рет қаралды 170 М.
RECYCLERVIEW - Android Fundamentals
24:58
Philipp Lackner
Рет қаралды 102 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 352 М.
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 4,2 МЛН