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
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 ❤
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?
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?
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?
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
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.👍
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);
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 )
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
@@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?
@@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 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);
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.
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 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
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 🙏
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
Using pixel 2 api 28 without 🖼
@@mafiacodes Thankuu for your valuable comments Dude😌❤️🙏 ur code tutorial really worth it for me😊
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 ❤
This is one of the best tutorial ever. After your explanations i was able to do this on my own
Subscribe like share
Short, sweet and simple ! Simply the best one tutorial on sectioned recyclerview .Congrats man !
Glad you liked it!
Congratulation man, one of the best programming channel, you deserve more, more and more subscribers
Good up to date video tutorial. Teaching style also is very detailed. Keep up the good work. You deserve more subscribers.
Thanks, subscribe like share
Luv your precious voice and teaching style...🙏🙏🙏🙏🙏🙏😍😍😍😍😍😍🥰🥰🥰🥰🥰
Subscribed after watching this your first video. Nice Explanations.
Thanks 😊
Thanks,
It is veey useful to me
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.
Any idea how to refresh the items inside the entire list? I called notifyDatsetChanged inside MainAdapter but it did not work
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?
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?
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?
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
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.👍
Thumbs up, a great resource to tackle Sectioned RecyclerView.
How to hide a section if there is no data?
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);
Because it shows empty section, I face u should return the number of sections from getitemcount, u have to make a check there also.
thanks
Sos un genio!!!!!
me quedo super claro!,
muchas gracias!!!!! :)
Me alegro que te guste el video, suscríbete como compartir
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.
It’s possible
Perfect
Thank you so much!! Here from #Ecuador
Sir, thank you for the video... Also need to ask how can we store these data in Firebase database? Need help with that
Waiting❤️
Osm Work
Subscribe like share
Joined
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 )
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
what theme you use my friend ?
Google developers by louiscad
Congrats for the tutorial.. very good job! But, If one Section Item had nested items([ ] , {}).. how would you deal with that?
U have to use the same logic if nesting goes on, but that should not be done, u shud flatten the data
@@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?
or maybe I should use another way to display that kind of data? I will find my way I suppose!!! Thanks for your tuts...
@@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?
U can but u might have rendering issues
Are the list of items in each section srollable?
Yes
Great video. Have you done a follow up video on how to open an activity from the ChildRecyclerAdapter?
Not exactly but you can simply create an interface and handle clicks
yoursTRULY Hi thanks Yeh I actually found your vid on using an interface to implement onClick
Glad that you like it
@@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);
The problem seems to be with the context, pass in the activity context if using activity or ur fragment context if using that
Thanks sir. Sir pls can you make a video on infinite recyclerview. Thanks again
Will try to make
@@mafiacodes pls sir
Can you drag an item from e.g. Epic and drop it to an other group?
Well u can do but u need to implement ur own logic
yoursTRULY can you make a tutorial please? I am not good enough for this
is there any reason to keep the min sdk version 16?
No, u can keep min at any
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.
U can check the code on GitHub, probably ur missing layout manage
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
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.
@@galphie5997 without firebase it is not possible?
@@lakshaymudgal5568 You mean with another type of database or with no database at all?
You can also store it in Shared Preferences
@@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
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 🙏
ua-cam.com/video/CTvzoVtKoJ8/v-deo.html
Child recyclerview will loose the capability of recycling items, won't it?
header should be sticky
This is not correct. It shall be done with 1 RecyclerView and 1 adapter
How should it be done? Link please.