Section Recycler View | Grouped Recycler View

  Рет қаралды 20,829

Mafia Codes

Mafia Codes

Күн бұрын

In this video you will learn how to setup a #sectionedRecyclerView (or a grouped recycler view) with detailed explanation (#grouprecyclerview)
⭐ 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...
FREE $100 credit @Digital Ocean: m.do.co/c/3208...
Patreon: / trulymittal
Subscribe: www.youtube.co...
#RecyclerView: • Recycler View with com...
Github(Tutorial): github.com/tru...
RecyclerView: developer.andr...
RecyclerView(dependency): developer.andr...
---------------
More useful videos
---------------
#ViewModel: • View Model | Live Data...
#Retrofit: • RETROFIT Tutorial (v 2...
#WorkManager: • Work Manager | Android...
#KeyframeAnimations: • Keyframe Animations wi...
#CollapsingToolbar Layout: • Collapsing Toolbar Lay...
#BottomNavigation View: • Bottom Navigation View...
#NavigationComponent: • Navigation Component |...
#NightMode: • Night Mode | Dark Mode...
#ButterKnife: • Butter Knife | Field a...
SplashScreen: • Splash screen | Launch...
Singletons: • Singletons | What When...
---------------
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 #how-to #android

Пікірлер: 80
@prakashmehta8872
@prakashmehta8872 4 жыл бұрын
Thankuu so much it worth it coming here after StackOverflow, Google, and many more blogs stucked from 2 days in this problem did not know this feature is known as "Sectioned View" which emulator you are using please tell. Thanku so much dude
@mafiacodes
@mafiacodes 4 жыл бұрын
Using pixel 2 api 28 without 🖼
@prakashmehta8872
@prakashmehta8872 4 жыл бұрын
@@mafiacodes Thankuu for your valuable comments Dude😌❤️🙏 ur code tutorial really worth it for me😊
@anasyousuf485
@anasyousuf485 2 жыл бұрын
Really you nailed it, you just made it super easy with conventions of "main and child recyclerView", and many other proper things. Awesome ❤ more simple the tutorial is more easy to follow and understand. Once again Thanks ❤
@kenworldtechnologies1567
@kenworldtechnologies1567 2 жыл бұрын
This is one of the best tutorial ever. After your explanations i was able to do this on my own
@mafiacodes
@mafiacodes 2 жыл бұрын
Subscribe like share
@uditpandya3836
@uditpandya3836 4 жыл бұрын
Short, sweet and simple ! Simply the best one tutorial on sectioned recyclerview .Congrats man !
@mafiacodes
@mafiacodes 4 жыл бұрын
Glad you liked it!
@ManishSingh-nx6lq
@ManishSingh-nx6lq 4 жыл бұрын
Luv your precious voice and teaching style...🙏🙏🙏🙏🙏🙏😍😍😍😍😍😍🥰🥰🥰🥰🥰
@jjb5142
@jjb5142 4 жыл бұрын
Congratulation man, one of the best programming channel, you deserve more, more and more subscribers
@rakib7764
@rakib7764 4 жыл бұрын
Good up to date video tutorial. Teaching style also is very detailed. Keep up the good work. You deserve more subscribers.
@mafiacodes
@mafiacodes 4 жыл бұрын
Thanks, subscribe like share
@sanderssharma8001
@sanderssharma8001 4 жыл бұрын
Did not think that I would get this about the case . list inside list Last week i have same case where i was getting list inside list i did search more but did not find something can help me So i had done it in the same way as u did . So can we make possible it in single recyclerview ? Because in multiple recyclerview difficult to handle the click event Interface callbacks of last recyclerview in main activity ... If yes plz reply me But i want to say thank you men U r Really...awesome
@prakashmehta8872
@prakashmehta8872 4 жыл бұрын
Yes u can do by using multiple viewtype jn recycelerview using view type. I knoe that much only u can search for this and implement if it goes well also tell me hoe do u do it.👍
@beepst
@beepst 3 жыл бұрын
Thanks so much for this tutorial. I'd appreciate if you teach us how to filter one of these Section Recycler Views with a Search View.
@BhanshaliBhargav
@BhanshaliBhargav 4 жыл бұрын
Subscribed after watching this your first video. Nice Explanations.
@mafiacodes
@mafiacodes 4 жыл бұрын
Thanks 😊
@RizwanAbbasi
@RizwanAbbasi 4 жыл бұрын
Thumbs up, a great resource to tackle Sectioned RecyclerView. How to hide a section if there is no data?
@RizwanAbbasi
@RizwanAbbasi 4 жыл бұрын
I tried this approach but if the middle section is to be hidden then there will be blank space in middle section, that's the problem. holder.itemView.setVisibility(View.GONE);
@mafiacodes
@mafiacodes 4 жыл бұрын
Because it shows empty section, I face u should return the number of sections from getitemcount, u have to make a check there also.
@sat_talk
@sat_talk 2 жыл бұрын
Thank you sir.. How do we generate sectioned RecyclerView when the Model data class contains one of date/month/year String variable and we want to generate a Sectioned view based on each month and child as other variables like transaction Type, transaction Name etc?
@gulfappdeveloper2849
@gulfappdeveloper2849 3 жыл бұрын
Thanks, It is veey useful to me
@elmundodefer
@elmundodefer 2 жыл бұрын
I want to thank you in advance for this video. I will try this on the weekend. I wonder how it will behave when a section (or more) contains so many items that it has to scroll to view them all. Will the different scrolls from each section and main recycler view interfere each other?
@rahilsiraj3507
@rahilsiraj3507 3 жыл бұрын
Great video! Was wondering if we can make the section expand and collapse depending on whether we want to show the titles in the genres.
@mafiacodes
@mafiacodes 3 жыл бұрын
It’s possible
@Tangirinus
@Tangirinus Жыл бұрын
thanks
@samcn3933
@samcn3933 4 жыл бұрын
Thank you so much!! Here from #Ecuador
@sudarshanakonwar3458
@sudarshanakonwar3458 3 жыл бұрын
Sir, thank you for the video... Also need to ask how can we store these data in Firebase database? Need help with that
@kisanshah3739
@kisanshah3739 4 жыл бұрын
Waiting❤️
@VCWGAMESTUDIO
@VCWGAMESTUDIO 2 жыл бұрын
Perfect
@davidmunk7575
@davidmunk7575 3 жыл бұрын
How can I connect the MainActivity from within the child rV? I try to set a view invisible onClick of a child rV item. I tried with interfaces, but I couldn´t reuse it with putting it into constructor, because the parent rV is in between the child rV and the mainActivity. How can I do this?
@amarlaha3954
@amarlaha3954 4 жыл бұрын
Thanks sir. Sir pls can you make a video on infinite recyclerview. Thanks again
@mafiacodes
@mafiacodes 4 жыл бұрын
Will try to make
@amarlaha3954
@amarlaha3954 4 жыл бұрын
@@mafiacodes pls sir
@superultragameplayg1974
@superultragameplayg1974 2 жыл бұрын
Sos un genio!!!!! me quedo super claro!, muchas gracias!!!!! :)
@mafiacodes
@mafiacodes 2 жыл бұрын
Me alegro que te guste el video, suscríbete como compartir
@thaliaamargianou7870
@thaliaamargianou7870 4 жыл бұрын
Congrats for the tutorial.. very good job! But, If one Section Item had nested items([ ] , {}).. how would you deal with that?
@mafiacodes
@mafiacodes 4 жыл бұрын
U have to use the same logic if nesting goes on, but that should not be done, u shud flatten the data
@thaliaamargianou7870
@thaliaamargianou7870 4 жыл бұрын
@@mafiacodes thanks for the answer..! But when you are getting the data from rest json.. they have a specific structure..! Usually the json raw data.. having nested arrays and objects..! In my case this is what I have to solve..! I want to use recyclerview and cardview.. and inside cardview under one item there is an array.. and there starting my problems...! I watched your tutorial and it looks easy but when you have normal structure of data!!! If you have complex structure of data.. you should use the same logic? Nested recyclerview inside cardview and then expand the card? Also for every recyclerview you must create an adapter or a viewholder?
@thaliaamargianou7870
@thaliaamargianou7870 4 жыл бұрын
or maybe I should use another way to display that kind of data? I will find my way I suppose!!! Thanks for your tuts...
@thaliaamargianou7870
@thaliaamargianou7870 4 жыл бұрын
@@mafiacodes is it possible to use this logic inside a cardview? Every section to be a cardview!!!..and inside the card to have the section Name + sections items?
@mafiacodes
@mafiacodes 4 жыл бұрын
U can but u might have rendering issues
@NikhilAdiga
@NikhilAdiga 2 жыл бұрын
Any idea how to refresh the items inside the entire list? I called notifyDatsetChanged inside MainAdapter but it did not work
@RobinThomsonMusician
@RobinThomsonMusician 4 жыл бұрын
Great video. Have you done a follow up video on how to open an activity from the ChildRecyclerAdapter?
@mafiacodes
@mafiacodes 4 жыл бұрын
Not exactly but you can simply create an interface and handle clicks
@robinthomsoncomposer
@robinthomsoncomposer 4 жыл бұрын
yoursTRULY Hi thanks Yeh I actually found your vid on using an interface to implement onClick
@mafiacodes
@mafiacodes 4 жыл бұрын
Glad that you like it
@RobinThomsonMusician
@RobinThomsonMusician 4 жыл бұрын
@@mafiacodes Got the click to work using the interface but now my Intent keeps throwing "Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference" Cannot resolve it. Any ideas? Intent intent = new Intent(context, Waves.class); context.startActivity(intent);
@mafiacodes
@mafiacodes 4 жыл бұрын
The problem seems to be with the context, pass in the activity context if using activity or ur fragment context if using that
@AbdulSamad-yu1zn
@AbdulSamad-yu1zn 4 жыл бұрын
Joined
@moazzamsaleem4226
@moazzamsaleem4226 2 жыл бұрын
Osm Work
@mafiacodes
@mafiacodes 2 жыл бұрын
Subscribe like share
@goraghosh6622
@goraghosh6622 2 жыл бұрын
header should be sticky
@shivashiva4276
@shivashiva4276 3 жыл бұрын
Hi bro how r u , really your videos are lot of help me , make a one video for how to add search filter in nested recyclerview please make a video for this topic iam strucked here please Help me 🙏
@mafiacodes
@mafiacodes 3 жыл бұрын
kzbin.info/www/bejne/eYXZq6KMqbCigJo
@lakshaymudgal5568
@lakshaymudgal5568 4 жыл бұрын
Sir, may you please make an video like add to favourites in music player app in which on any icon click on any recyclerview item data pass from one fragment to another
@galphie5997
@galphie5997 4 жыл бұрын
Use a boolean and store it in your database. Doing so allows you to retrieve only the ones which have the boolean set on true.
@lakshaymudgal5568
@lakshaymudgal5568 4 жыл бұрын
@@galphie5997 without firebase it is not possible?
@galphie5997
@galphie5997 4 жыл бұрын
@@lakshaymudgal5568 You mean with another type of database or with no database at all? You can also store it in Shared Preferences
@lakshaymudgal5568
@lakshaymudgal5568 4 жыл бұрын
@@galphie5997 whenever I stored using item click it stores but it also move to that particular fragment which I don't want and also it replaces not add one after the other in recyclerview
@mohammedshabbir6933
@mohammedshabbir6933 4 жыл бұрын
Sir how to open new recyclerView depending on selection form another recyclerView( if shirt is selected from category of clothes new recycler view to show all shirts )
@mafiacodes
@mafiacodes 4 жыл бұрын
Firstly if u want to open a new recycler view like u said shirts then u should implement onclick on section heading, if u select a shirt from clothing section then it shud open the individual shirt details page
@Ghost-sc1my
@Ghost-sc1my 3 жыл бұрын
Are the list of items in each section srollable?
@mafiacodes
@mafiacodes 3 жыл бұрын
Yes
@rupeshsasne
@rupeshsasne 2 жыл бұрын
Child recyclerview will loose the capability of recycling items, won't it?
@notheory-norules5915
@notheory-norules5915 3 жыл бұрын
what theme you use my friend ?
@mafiacodes
@mafiacodes 3 жыл бұрын
Google developers by louiscad
@blackpython8015
@blackpython8015 4 жыл бұрын
Can you drag an item from e.g. Epic and drop it to an other group?
@mafiacodes
@mafiacodes 4 жыл бұрын
Well u can do but u need to implement ur own logic
@blackpython8015
@blackpython8015 4 жыл бұрын
yoursTRULY can you make a tutorial please? I am not good enough for this
@niharprabhu3604
@niharprabhu3604 3 жыл бұрын
is there any reason to keep the min sdk version 16?
@mafiacodes
@mafiacodes 3 жыл бұрын
No, u can keep min at any
@niharprabhu3604
@niharprabhu3604 3 жыл бұрын
Thanks for replying instantly. Do you have blog or Website which shows this example that you have achieved. Actually i am facing RecyclerView: No adapter attached; skipping layout issues.
@mafiacodes
@mafiacodes 3 жыл бұрын
U can check the code on GitHub, probably ur missing layout manage
@magarigiga
@magarigiga 3 жыл бұрын
This is not correct. It shall be done with 1 RecyclerView and 1 adapter
@jonathan3087
@jonathan3087 2 жыл бұрын
How should it be done? Link please.
Notifications and notification channels in Android
23:03
Mafia Codes
Рет қаралды 6 М.
Recycler View with complete explanation | Android
24:56
Mafia Codes
Рет қаралды 41 М.
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 8 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 275 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 23 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 11 МЛН
View Model | Live Data | Android Jetpack | Android Studio 3.1.2
17:25
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 138 М.
RecyclerView with Multiple View Types - #3 RecyclerViewAdapter
9:29
Simplified Coding
Рет қаралды 10 М.
RecyclerView with ViewBinding (replaces findViewById)
16:17
Mafia Codes
Рет қаралды 8 М.
SQLite Database for Android - Full Course
1:28:22
freeCodeCamp.org
Рет қаралды 250 М.
Navigation Component | Android Jetpack | Android
17:26
Mafia Codes
Рет қаралды 49 М.
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 8 МЛН