Expandable Recycler View | Android

  Рет қаралды 45,301

Mafia Codes

Mafia Codes

Күн бұрын

Пікірлер: 146
@bartlomiejdrozd2357
@bartlomiejdrozd2357 4 жыл бұрын
Man I was struggling with double alert dialog and then came up with the idea of expandable layout. The way you shown it was absolutely beautiful. Thank you so much sir!
@mafiacodes
@mafiacodes 4 жыл бұрын
Great idea 💡
@Luis-xe9og
@Luis-xe9og 4 жыл бұрын
Pretty straightforward. Well explained and directly to the point!
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@androidcell7093
@androidcell7093 5 жыл бұрын
Very well explained. I was waiting for this video
@aakashgupta4477
@aakashgupta4477 4 жыл бұрын
I liked your vedios alot I found almost everything I was searching for on your channel. Great work sir, keep going
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share😊
@rameshkrishnan6754
@rameshkrishnan6754 4 жыл бұрын
Hello sir🙏. I have a doubt, in the movie adapter class L33. is showing me an error, how can we call methods without object? Thank you
@mafiacodes
@mafiacodes 4 жыл бұрын
L33 is blank in my repo, please go to my repo and then let me know which line ur talking about
@rameshkrishnan6754
@rameshkrishnan6754 4 жыл бұрын
@@mafiacodes Thanks for responding , actually the array was not initialised😊
@iliya2098
@iliya2098 2 жыл бұрын
I tried to follow this as best as I could, but I'm unable to replicate the animation. How did you implement it?
@md.rejaulkarim9215
@md.rejaulkarim9215 4 жыл бұрын
Excellent tutorial. But how did you make your IDE font colors like this cool?
@mafiacodes
@mafiacodes 4 жыл бұрын
Using google theme 😊
@MYTHARENA
@MYTHARENA 4 жыл бұрын
Awesome bro...u just made it a piece of cake. Just one question. Can we set it like this, if we click on one title it expands, now if we click on other title the previous expandable title should close. Thanks a lot.
@mafiacodes
@mafiacodes 4 жыл бұрын
You can do that, just u need to keep a track which item is expanded and then close that when expanding a new one.
@ArupKumarTewary
@ArupKumarTewary 4 жыл бұрын
@@mafiacodes i also have the same question bro. can u plzzz help it in detail with that.... it would be of immense help. Love from Jharkhand
@ravimishra8632
@ravimishra8632 4 жыл бұрын
They way you explained is very simple and clear. Video is helpful. keep uploading such content!..
@prathiv5203
@prathiv5203 4 жыл бұрын
bro , really goooooooooood video ,the way u explaining is next level......,plz upload lots of video about android studio *we will support you*
@mafiacodes
@mafiacodes 4 жыл бұрын
Thanks 😊 subscribe like share
@ShivamKumar-rp8kr
@ShivamKumar-rp8kr 4 жыл бұрын
what is the theme you're using in studio. I loved it. thanks for video
@mafiacodes
@mafiacodes 4 жыл бұрын
It’s google developers theme and the font is operator mono Subscribe like share
@ShivamKumar-rp8kr
@ShivamKumar-rp8kr 4 жыл бұрын
@@mafiacodes I watched the whole video and made a sample app. But my expanding layout is not open smoothly as yours
@mafiacodes
@mafiacodes 4 жыл бұрын
Share code on GitHub
@MattandShivs
@MattandShivs 4 жыл бұрын
So simple it makes me want to cry. Great job!!!
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@ItsMrsSharma
@ItsMrsSharma 4 жыл бұрын
Thanks for this simple explanation but can you please tell me that if the exapanding portion is getting data from the another api not from the current listed api then how this will work?
@mafiacodes
@mafiacodes 4 жыл бұрын
then also it would work, since expanded boolean is not related to data that is being currently fetched, u can show a loading indicator while the data is being fetched.
@ItsMrsSharma
@ItsMrsSharma 4 жыл бұрын
@@mafiacodes Thanks i will work on it and surely let you know.
@mafiacodes
@mafiacodes 4 жыл бұрын
Surely
@sateeshchikkalagi904
@sateeshchikkalagi904 5 жыл бұрын
Nice explanation with zoom i searched lot for this video finally I got it Thanks
@mafiacodes
@mafiacodes 5 жыл бұрын
Subscribe like share
@harshadbb9996
@harshadbb9996 3 жыл бұрын
Can we add buttons if yes... how to add??
@vikasgangwar3542
@vikasgangwar3542 2 жыл бұрын
Hii, Video is very good. But I am facing one problem. Could you please help me with one thing, how to close the one item when we open the other item.
@ultimat.
@ultimat. 4 жыл бұрын
Bonjour, je sais pas si vous allez pouvoir me donner l'info. J'ai créé une liste view et je croyais pouvoir attacher une autre liste wiew mais je n'y arrive pas. Mon projet et de présenter des articles de péche et pour cela j'ai besoin de créer des catégories exemples A1) matériels de pêche A>A>A>FICHE ARTICLES B1) matériels vêtements de pêche. B) >A> les chaussures B) >A>A > 1) hommes >toutes les chaussures homme présentation. B) >A>A > 2) femmes B) >B>A les patalons C1) ***** sous catégories de A) > A>a accessoires de pêche les bouchons A>b les apats A>b>1 Les appâts vivants A>b>1>a)vers A>b>1>a) 1 vers blanc A>b>1>a) 2 vers gris A>b>1>b)asticots A>b>1>b) 1 asticots boîte 5 A>b>2 Les appâts morts A>c1 les Cannes à pêche.... Et après la fiche de l'article. Comment procéder. J'ai cherché et rien trouvé si vous pouviez m'orienter ou me donner une source ou autre je suis preneur. Merci beaucoup par avance.
@anb4351
@anb4351 4 жыл бұрын
Its working but the transition in not smooth like in your video it expands and collapse immediately
@mafiacodes
@mafiacodes 4 жыл бұрын
Compare with my code, u might be missing some layout tags
@mohamedayad70
@mohamedayad70 3 жыл бұрын
I don't know how you always make it very easy like that 😂😂 Thank you bro from all of my heart ❤️❤️
@mafiacodes
@mafiacodes 3 жыл бұрын
My pleasure 😊
@mohamedayad70
@mohamedayad70 3 жыл бұрын
@@mafiacodes can you explain why animations don't work for the recyclerview when it's inside nestedscrollview
@mafiacodes
@mafiacodes 3 жыл бұрын
Dont know
@mafiacodes
@mafiacodes 3 жыл бұрын
Don’t know
@habbeetayonak2355
@habbeetayonak2355 4 жыл бұрын
Can u explain how adding search or filter items to expandabl RecyclerView please
@mafiacodes
@mafiacodes 4 жыл бұрын
you can use the same logic as in this video: kzbin.info/www/bejne/eYXZq6KMqbCigJo
@mubasharhassan1998
@mubasharhassan1998 4 жыл бұрын
Sir i have recycler with cardview on which I show data which I get through API ,but data is more than cardview size and goes outside ,now I want such type of that my extra data is not visible before I click on cardview what should I do??
@mafiacodes
@mafiacodes 4 жыл бұрын
Use truncated text in ur text view
@mubasharhassan1998
@mubasharhassan1998 4 жыл бұрын
@@mafiacodes thank you!
@Arunkumar-xf1hd
@Arunkumar-xf1hd 2 жыл бұрын
i have created the same but my expandable layout view imidiatly(no animation like slide)
@MultiPAVEL86
@MultiPAVEL86 4 жыл бұрын
Worked wonders for me. Thank you.
@mafiacodes
@mafiacodes 4 жыл бұрын
Great to hear!
@kamalpreetsingh4782
@kamalpreetsingh4782 3 жыл бұрын
sir whenever 1 cardview is expanded and i try to open the other one..it doesn't expand
@mafiacodes
@mafiacodes 3 жыл бұрын
It should, compare with my repository
@kamalpreetsingh4782
@kamalpreetsingh4782 3 жыл бұрын
@@mafiacodes It works great now👍👍👍🙏🙏..i had some problem in my expandable constraint layout
@yanshulnarotra4934
@yanshulnarotra4934 3 жыл бұрын
Thank you so much bro
@justanotherdaydream
@justanotherdaydream 4 жыл бұрын
Thanks for the tutorial!
@mafiacodes
@mafiacodes 4 жыл бұрын
subscribe like share
@babarsiddique8492
@babarsiddique8492 4 жыл бұрын
Great Help! but i have one question when i have clicked the bottom item in recycler view i have to drag it upward to see the details, is there any possibility if i clicked last item the detail layout will automatically dragged up?...Looking for your response Thanks
@mafiacodes
@mafiacodes 4 жыл бұрын
I am not sure but u can try out .smoothScrollToPosition(), if that helps, else I'll see something other which can be done...Subscribe like share 😊
@babarsiddique8492
@babarsiddique8492 4 жыл бұрын
​@@mafiacodes Thanks alot..it works!! ;-)
@prakashmehta8872
@prakashmehta8872 4 жыл бұрын
Great stuff code of recyclerview expandable start from here 5:23
@forjordon
@forjordon 4 жыл бұрын
Thanks for the great video! Can I ask, if my expanded view is 2 buttons, what is a way to create a way to register if the buttons are clicked?
@mafiacodes
@mafiacodes 4 жыл бұрын
yes implement oncliclisteners to those buttons using an interface, to implement an interface watch this video kzbin.info/www/bejne/d5zMnaeKq5V2oKM
@dipchandyadav6307
@dipchandyadav6307 4 жыл бұрын
Hiii , How we can do Expandable Recycler view Using firebase ui . Because in firebase ui Recycler view, we don't have to mention any List than how we get Movie list ...... You mentioned on your Expandable Recycler view KZbin video .....
@Sydewinder890
@Sydewinder890 2 жыл бұрын
Thank you! Works like a charm
@denismugane2765
@denismugane2765 4 жыл бұрын
Hello sir thanks for tutorial. How do I only make one item to expanded that is if i click on item previous item expanded shud be closed automatically
@mafiacodes
@mafiacodes 4 жыл бұрын
U have to use some logic like keeping a track of which item is open and which is not
@denismugane2765
@denismugane2765 4 жыл бұрын
@@mafiacodes how would I go about it. I need to implement
@sayyedaamer9243
@sayyedaamer9243 5 жыл бұрын
Thanks for your help. I have a prblm which i commented in you video and you give me reply for that and that was very helpful to me thank you very much. Can you plz make videos on content providers (in depth) there are lots of video on that topic but they are using the same example of reading contact only and finished it. Its my request to make the video on that bcz you will make it very easy for us.
@AtulGupta-jj7ek
@AtulGupta-jj7ek 4 жыл бұрын
Please make a video on expandable listview
@mafiacodes
@mafiacodes 4 жыл бұрын
Why u wanna use a listview? Incase u still wanna use, the logic still remains the same.
@madhavbhavsar3671
@madhavbhavsar3671 4 жыл бұрын
i also want to add image in the expandable layout.....how can i add ?/
@mafiacodes
@mafiacodes 4 жыл бұрын
Add in a image view inur row.
@nightmarexcvm
@nightmarexcvm 5 жыл бұрын
Thank you so much. It is better than many libraries in github.
@mafiacodes
@mafiacodes 5 жыл бұрын
Subscribe like share 😊
@amitghosh3938
@amitghosh3938 4 жыл бұрын
What to do if we want to expand only 1 view at a time ??
@mafiacodes
@mafiacodes 4 жыл бұрын
Implement own logic like looping all items and setting to false every other item
@siyandatholithemba9011
@siyandatholithemba9011 4 жыл бұрын
Hy, you have the best tutorials👍👌👍. I have been struggling to add an onclick lister on the child items of sectioned and expandable recyclerview, please can you share source code of that or any help. Am still a Junior developer
@mafiacodes
@mafiacodes 4 жыл бұрын
Use interface for them as well
@siyandatholithemba9011
@siyandatholithemba9011 4 жыл бұрын
@@mafiacodes I have tried please can you share code for my problem. I have watched the onclick interface and know how to use it failing on sectioned and expandable recyclerview to use it.
@rahulsharma6703
@rahulsharma6703 5 жыл бұрын
Hello friends please help me recyclerview expandable show grid formate
@sachetthashrestha539
@sachetthashrestha539 5 жыл бұрын
Great video.Thanks. Is it possible to make a video for sectioned recycler view(for eg. dataset with a list of categories which further have another list of data inside them)? 🤓
@mafiacodes
@mafiacodes 5 жыл бұрын
That exact video is already planned, will be in a week.
@sachetthashrestha539
@sachetthashrestha539 5 жыл бұрын
@@mafiacodes waiting for this,sir :D
@tanmaysinghal8370
@tanmaysinghal8370 3 жыл бұрын
@@mafiacodes did you post that video sir?
@forester1
@forester1 2 жыл бұрын
Really good channel ☺️👍
@Lion-bi8fy
@Lion-bi8fy 4 жыл бұрын
Nice tutorial! Thanks :)
@vinayakchautre5056
@vinayakchautre5056 2 жыл бұрын
how to disable onclick of 1st item in childview
@mafiacodes
@mafiacodes 2 жыл бұрын
in bind view holder, check if index is 0
@EddyMP
@EddyMP 5 жыл бұрын
Salvaste mi semestre!!
@mafiacodes
@mafiacodes 5 жыл бұрын
subscribe like share 😊
@ninomuring6653
@ninomuring6653 5 жыл бұрын
Is there a way that this could be also applied to FirestoreRecyclerAdapter?
@mafiacodes
@mafiacodes 5 жыл бұрын
You can use the same logic and can apply
@Omerr_developer
@Omerr_developer 4 жыл бұрын
Nice video , thank you :)
@rafiulansari
@rafiulansari 4 жыл бұрын
Great video and very easy to follow. Thanks!
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@euroglobalservices
@euroglobalservices 3 жыл бұрын
Great video, good explaination, straightforward. Thank you so much
@slash0t5
@slash0t5 4 жыл бұрын
Very helpful video. Make sure you use boolean or Boolean but not both. :)
@mafiacodes
@mafiacodes 4 жыл бұрын
Yup my bad 🤗
@UniformDelta00
@UniformDelta00 5 жыл бұрын
thanks for your creativity !
@mafiacodes
@mafiacodes 5 жыл бұрын
Subscribe like share ☺️
@dipchandyadav6307
@dipchandyadav6307 4 жыл бұрын
Please reply .... Hiii , How we can do Expandable Recycler view Using firebase ui . Because in firebase ui Recycler view, we don't have to mention any List than how we get Movie list ...... You mentioned on your Expandable Recycler view KZbin video ..... Please make a telegram account Please.... To help us
@josephmota358
@josephmota358 4 жыл бұрын
Thanks. Worked fine
@MartinDev77
@MartinDev77 4 жыл бұрын
Thanks for sharing, very easy to follow the tutorial. I greet you from Argentina.
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share😊
@denialfian2122
@denialfian2122 5 жыл бұрын
Nice tutorial, Keep it up :)
@mafiacodes
@mafiacodes 5 жыл бұрын
Thx subscribe like share ☺️
@hamid-karimi
@hamid-karimi 4 жыл бұрын
this is great , thank you
@nadaak2385
@nadaak2385 4 жыл бұрын
Thanks for sharing.
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@louis18071957
@louis18071957 4 жыл бұрын
you are the best I learn android with you THANKS !!!!!!
@mafiacodes
@mafiacodes 4 жыл бұрын
Thanks, Subscribe like share...
@amitghosh3938
@amitghosh3938 4 жыл бұрын
Great video 🥰🥰 Sir how to do this to firebase recycler vire
@mafiacodes
@mafiacodes 4 жыл бұрын
Inside on bindviewholder
@ttttrent2668
@ttttrent2668 3 жыл бұрын
Thanks man!
@mafiacodes
@mafiacodes 2 жыл бұрын
Subscribe like share
@osamajune9
@osamajune9 4 жыл бұрын
I have implemented this in my project so when I am clicking on 1st index its opening but its covering 2nd index card as well what to do??????
@osamajune9
@osamajune9 4 жыл бұрын
It worked just change Recycler views xml root element from linear/relative to constraint layout
@rajuadapa05
@rajuadapa05 4 жыл бұрын
Sir, Please make same video for retrieve data from firebase database.. Waiting.. Sir please..
@mafiacodes
@mafiacodes 4 жыл бұрын
Already have a full series on firebase: Firebase | Build a Notes App kzbin.info/aero/PLdHg5T0SNpN2NimxW3piNqEVBWtXcraz-
@rajuadapa05
@rajuadapa05 4 жыл бұрын
@@mafiacodes thank you sir, sir please make video for open pdf files in list view retrieve data from firebase database..
@rajuadapa05
@rajuadapa05 4 жыл бұрын
@@mafiacodes sir, which company you are working? Very curious to know about you? 😍💗💗
@mafiacodes
@mafiacodes 4 жыл бұрын
None I am working for my own company 😉
@rajuadapa05
@rajuadapa05 4 жыл бұрын
@@mafiacodes Hahaha 🤣🤣.. I think you are doing job in some IT company..
@esegovia
@esegovia 5 жыл бұрын
Thank u so much, bro
@mafiacodes
@mafiacodes 5 жыл бұрын
Subscribe like share😊
@afrididanial
@afrididanial 5 жыл бұрын
Thanks for help u work good one more think i want to let u know you are ading view.gone in adopter thats is not working for me but if i do view.invisible thats work for me any tips why view.gone not working for me but view.invisible working
@mafiacodes
@mafiacodes 5 жыл бұрын
Share code on github, so i can check
@abhilashgurudeva386
@abhilashgurudeva386 3 жыл бұрын
Thanks for this..
@mkc0321
@mkc0321 4 жыл бұрын
very good video
@ianrosales9284
@ianrosales9284 4 жыл бұрын
The best.
@rahhi9792
@rahhi9792 5 жыл бұрын
Waiting for this video sir
@mafiacodes
@mafiacodes 5 жыл бұрын
@6:00PM IST
@adityaroy1851
@adityaroy1851 5 жыл бұрын
Sir make file manager appication tutorial
@danielgabriealjayarajan6844
@danielgabriealjayarajan6844 4 жыл бұрын
Source Code?
@mafiacodes
@mafiacodes 4 жыл бұрын
In description
@reddym6849
@reddym6849 4 жыл бұрын
Thanks
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share😊
@mohammadmehdikhajehzadeh1655
@mohammadmehdikhajehzadeh1655 3 жыл бұрын
good I like it
@nathann4608
@nathann4608 3 жыл бұрын
as soon as i feel I am learning sth u say its basic 😒
@mafiacodes
@mafiacodes 3 жыл бұрын
😅
@MuhammadAhmad-qg1ri
@MuhammadAhmad-qg1ri 3 жыл бұрын
Great
@rogercolque
@rogercolque 5 жыл бұрын
nice : )
@mafiacodes
@mafiacodes 5 жыл бұрын
Subscribe like share ☺️
@ninhphamhai6300
@ninhphamhai6300 5 жыл бұрын
fucking great, thank man
@mafiacodes
@mafiacodes 5 жыл бұрын
Subscribe like share😊
@learnwithzo3531
@learnwithzo3531 2 жыл бұрын
Thanx a lot bro
@learnwithzo3531
@learnwithzo3531 2 жыл бұрын
Thanx a lot bro
Section Recycler View | Grouped Recycler View
25:22
Mafia Codes
Рет қаралды 21 М.
Recycler View with complete explanation | Android
24:56
Mafia Codes
Рет қаралды 41 М.
THIS Is How You Schedule Alarms on Android with AlarmManager
21:55
Philipp Lackner
Рет қаралды 42 М.
Multi view RecyclerView | getItemViewType() | Android
15:03
Mafia Codes
Рет қаралды 38 М.
RecyclerView in Android Studio using Kotlin | Android Knowledge
12:11
Android Knowledge
Рет қаралды 20 М.
Swipe gestures in Recycler View | Android
18:47
Mafia Codes
Рет қаралды 62 М.
RecyclerView Animations and Behind the Scenes (Android Dev Summit 2015)
45:35
RecyclerView item Click using Interface | Advanced Way | Android
7:01
Drag and drop Reorder in Recycler View | Android
7:05
Mafia Codes
Рет қаралды 32 М.
Collapsing Toolbar Layout | Android Studio 3.1.2
10:31
Mafia Codes
Рет қаралды 35 М.