Thank you so much, sir. I finally solved the problem I had been struggling with all day. I really appreciate it!!!!
@leolimoncito65643 жыл бұрын
I'm so grateful with your explanation
@sanderssharma80014 жыл бұрын
Your just awesome sir ... I have no words.. u tell the things really great....ese hi video dalte rahiyega
@hianuyesperidiao54993 жыл бұрын
what theme do you use for android studio? it's so beautiful
@AbdulHannan-sj2xi3 жыл бұрын
May you live long with a happy life bro. I complete my task due to you. I'm subscribing your channel now. Thanks
@dineshmunusamy82784 жыл бұрын
Superb teaching bro....
@CeziBel4 жыл бұрын
OMG I love u man u saved my lifeeee LOVEE you so much you can't even imagine 😍❤😍❤😘❤😍
@mafiacodes4 жыл бұрын
love u too bro...
@harshkaushik64262 жыл бұрын
really very helpful.........and clear as crisp, no extra bullshit. Well done My Friend.
@mohamedayad704 жыл бұрын
seems like i will be here all the night xD
@hadarangeethika4 жыл бұрын
This was very useful 😃, thank you so much 😊
@alex199910143 жыл бұрын
Wonderful tutorial with very detailed explanation and source code provided. What more could one ask for? Thank you so much =)
@mafiacodes3 жыл бұрын
Glad it helped!
@vikassaini63314 жыл бұрын
Thanks for the video 👍
@alexshiferaw71804 жыл бұрын
Thank you ! nice video and good explanation.
@DC-fn8kh2 жыл бұрын
Sir, how to apply this search filter in the shopping cart adapter which only use the interfaces ?
@cat_family3694 жыл бұрын
Sir can use search view on my card view dashboard i have to use there also grid layout
@mafiacodes4 жыл бұрын
U need to perform search on ur list so it dosen’t matter what view ur using
@cat_family3694 жыл бұрын
@@mafiacodes sure sir but muze samza nahi kuki mene bahut changes kiye but setadpter ko error ata hai not set adapter not resolve in gridlayout
@jaaxConJ2 жыл бұрын
Amazing tutorial, thanks a lot!
@ayeshanoreen7932 жыл бұрын
Thank you sooooo much for this video🥺
@kavinduM194 жыл бұрын
Thank u so much buddy ❤️❤️
@MinecraftLetstime4 жыл бұрын
I just finished this playlist. I have to thank you for this. It was perfect! Well done.
@mafiacodes4 жыл бұрын
Subscribe like share
@Alaa-mc1vu3 жыл бұрын
Hello how can i do multiple filter with recyclerview? 🤔
@yashtyagi80403 жыл бұрын
How I use search view if I have 2 to more string in recyle view. Please tell me
@Dhruvh14 жыл бұрын
Will it be wise to use it for a huge dataset?
@codingmerah83405 жыл бұрын
thank you so much my problem has been solved, good job man
@mafiacodes5 жыл бұрын
Subscribe like share😊
@pradiktabagus3 жыл бұрын
thank you, my project is done 😍❤😍❤😘❤😍
@patriciogonzalez33605 жыл бұрын
Thank you for this tutorial. Works for me :D
@mafiacodes5 жыл бұрын
Subscribe like share😊
@MarcelSchalk4 жыл бұрын
My main-activity is holding 3 fragments, that holding the adapter. Any ideas what I can do? I can not call the adapter in onQueryTextChange in the main activity, because the adapter is created in the fragment. But I don't know how to pass the filtered List to my main activity, to copy it, search in it and get the filtered list back to the adapter through the fragments.
@mafiacodes4 жыл бұрын
u can use an interface for the same. an example of using an interface is shown in this video (kzbin.info/www/bejne/d5zMnaeKq5V2oKM) that is on item click listener but u can use the same logic to implement an interface. hope that helps.
@rohithsuri17524 жыл бұрын
Hi Marcel Schalk, my requirement also same. Did u find it?
@rohithsuri17524 жыл бұрын
@@mafiacodes Above link is not working
@sachetthashrestha5395 жыл бұрын
loving this series on recycler view.will u do multi view type recycler view and expandable recycler view??
@mafiacodes5 жыл бұрын
Multi view type will be live most likely tomor 😉 till then SUBSCRIBE LIKE SHARE
@mafiacodes5 жыл бұрын
Multi view RecyclerView | getItemViewType() | Android kzbin.info/www/bejne/jKXRfaN-itpli5I
@milanribadiya28335 жыл бұрын
Thank you for your filter but I have not set on click into on bind view holder .please help me.
@mafiacodes5 жыл бұрын
I dint get you, share code on github Subscribe like share 😊
@milanribadiya28335 жыл бұрын
Sir please. You make video of recyclerview's search view + set on click please...
@hissabis20684 жыл бұрын
Thank you
@paullin70524 жыл бұрын
amazing tutorial!
@emremuslu77634 жыл бұрын
Thank you so much!
@ИльяКучер-н8ъ2 жыл бұрын
nice vid👍
@josephjetabela49933 жыл бұрын
yo How about there are another List of movie price, movie time , ... how to make it filterable??
@raj_kumar_mani4 жыл бұрын
Clear explanation. Keep it up :-)
@thejaniaravinda96353 жыл бұрын
Please let me know how to search two arraylists using filterable
@linusetikpon35274 жыл бұрын
very useful
@gurubhai49182 жыл бұрын
Th aks Mittal, can u pls extend this with Synonyms, because of people are not good with English and are from Germany / France (my clients search beer / bear for 🍺
@EyeXD3 жыл бұрын
I have the movieList that you initialized as List moviesList I have a ModelClass, where I initailized as List moviesList How do I make it work the moviesListAll in the constructor??
@vohoangvinh71944 жыл бұрын
Thank you it's wonderful
@Sidex150-g1p3 жыл бұрын
Lol mouse se type kar rahe ho kya? Btw thanks for this.
@Sampelmind815 жыл бұрын
hey from germany, i followed your instructions and the only problem is, when i clear the searchview, the unfiltered list is not shown. i wondering that your code works and my code not.
@mafiacodes5 жыл бұрын
👋 can u share ur code on github so i can check... Subscribe like share 😊
@lalizism5 жыл бұрын
@@mafiacodes I have the same problem Could you please help me too??? hey from México
@mafiacodes5 жыл бұрын
Download l/check my code from github, and match it with yours or share your code on github so i can replicate the error you are getting.
@mafiacodes5 жыл бұрын
Hey, plz share code on GitHub, or you can compare my code.
@Ropa78915 жыл бұрын
im having the same problem
@SatyamGupta-nx4zj2 жыл бұрын
when i click on search button my screen gets clear and then the searching is also not working
@BABATECHNOPEDIA4 жыл бұрын
Sir! How to use this filter option in firestore recycler view
@alanmc96604 жыл бұрын
Not easy to do! you need to use third party Algolia!!
@shrinivasbaldawa22323 жыл бұрын
The video was really very awesome..can you do the same for data stored in database and showing it in recyclerview?
@rnjita5814 жыл бұрын
Can you help me how to search without changing it's position number... Or How to show previous position number
@mafiacodes4 жыл бұрын
cud not get what u mean?
@rnjita5814 жыл бұрын
@@mafiacodes I have a list of users and their score. I sorted this by their score. There are total 2000+ users. Now what I want is that to show the position of current user. In simple word how to make the user to get his position in this list.(recyclerview)
@pranavshahi59964 жыл бұрын
Non-static method 'getFilter()' cannot be referenced from a static context
@Vandrea974 жыл бұрын
tengo ese mismo problema, pudiste solucionar?
@angie7884 жыл бұрын
@@Vandrea97 Yo igual , no lo soluciono aún :c
@mafiacodes4 жыл бұрын
can you tell exactly on which line your getting this error, coz I ran this application again and I am not getting this error, please verify your code with the repo on GitHub.
@pew-d442 жыл бұрын
@@mafiacodes Is it possible to do it with an object or does it have to be string? like for example car class with atributes or meal.
@pew-d442 жыл бұрын
@@Vandrea97 tengo ese mismo problema, pudiste solucionar?
@ThreadsX5 жыл бұрын
Thanks, How can I get the search filters items, position?
@mafiacodes5 жыл бұрын
You can get the item itself but position is different since recycler view is renders again, but incase you want position then you can use a different approach like setting a tag as an id or something like that.
@MrLOLs14 жыл бұрын
Thanks 😊
@mafiacodes4 жыл бұрын
Welcome 😊
@kroy24014 жыл бұрын
Sir, I want to perform a 2nd filteration on the 1st filter list what should i do?
@mafiacodes4 жыл бұрын
Create a second search field and use the filtered list as the input list for the second search field
@kroy24014 жыл бұрын
@@mafiacodes tried but not happening , please make a short video on that and provide me the link sir.
@NoddyS-gf3hl3 жыл бұрын
Hello, I did not have toolbar in my app earlier for some reasons. RecyclerView ia designed for 4th page after navigation and Now, for this recyclerview, I wanted to implement as search bar wont come. Please tell me how to implement it
@AkramKhan-ez9lr3 жыл бұрын
you use searchbar in your designmode
@mohamedagbaria34543 жыл бұрын
the search icon doesn't appear on the screen why ? in the Android manifest
@nguyenhung-fw5fy4 жыл бұрын
Sir, why don't use moviesList instead movieListAll ? Why you need creat movieListAll ?
@mafiacodes4 жыл бұрын
Coz it contains all the movies not the filtered one’s
@mhdunknown3 жыл бұрын
For those reading whom it crashes on them, don't forget that importing the correct library both in the xml and kt (or java) files is essential to get it to work, otherwise it'll crash.
@شرحتطبيقالاعلافالبديلة Жыл бұрын
i dont find Filtrable library on git hub .. what u talking about ?
@shubhamnaik19824 жыл бұрын
what if there are no matches for the search text ? What to do in that case , please help ?
@mafiacodes4 жыл бұрын
It won’t show results
@AmritaKumari-fl5uu3 жыл бұрын
How to create filter like flipkart or myntra can you pls also share tutorial of that?
Thanks for the video. My recyclerview data comes from a JSON file in my directory. Can I still use this method to search the recycleviewer?
@mafiacodes4 жыл бұрын
Yes, load up the recycler view and do the search
@ninomuring66535 жыл бұрын
Is the method the same when using FirestoreRecyclerAdapter ?
@techlinesystems48905 жыл бұрын
Am really enjoying your series, but please can you make same video for recyclerview search
@jivanmainali17425 жыл бұрын
Sir how to change color of searchview as well text inside of it
@shivashiva42763 жыл бұрын
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 🙏
@mafiacodes3 жыл бұрын
Ok I will try
@soumayamondal69154 жыл бұрын
Sir can you please tell me how add a fiture in recyclerview to multiple select to delete from recyclerview
@amitghosh39384 жыл бұрын
when I press search view on empty list the below line is producing and error recyclerAdapter.getFilter().filter(newText); how to deal with it?
@mafiacodes4 жыл бұрын
What is the error?
@amitghosh39384 жыл бұрын
@@mafiacodes recyclerAdapter is producing null pointerexception (Its working fine when there is at least one view in the list)
@rohithsuri17524 жыл бұрын
Awesome videos sir, could u make a video on search view in recycler view which is there in a fragment ?
@summmitbruh1234 жыл бұрын
How do I Implement this in a PagedListAdapter with viewmodels?
@ashishanand93314 жыл бұрын
i am displaying pdf files in recycler view, i followed your code step-wise but still not getting the search results. could you please help me with this?
@mafiacodes4 жыл бұрын
share code on Github
@ajaygalagali59634 жыл бұрын
Why this isn't working for app:showAsAction = "always" ?
@mafiacodes4 жыл бұрын
U need space for search view that’s why u need to collapse the action bar, therefore u need to use collapseActionView
@AlejandroMartinez-iz2kf4 жыл бұрын
Amigo buen dia. al escribir en el SearchView borra todo pero no muestra nada, y al borrar todo el contenido del SearchView deberia mostrar la lista completa pero no muestra nada
@mafiacodes4 жыл бұрын
Share code on GitHub in case you have any problem
@ashikroshan9954 жыл бұрын
Cannot resolve method 'getFilter' in 'Adapter' i am having this problem
@mafiacodes4 жыл бұрын
Share code on GitHub
@sorinaion13655 жыл бұрын
Hello Sir ! Here is 1 thing that doesn't work for me: The list contains 4 innitial tasks, added from the onCreate method. I added the "Add" button, which adds new tasks from the keyboard. If I make a search, AFTER I add some new tasks: the search is returning the correct Strings, but after the "x" is clicked, the rendered list is the innitial 4 items lists. The tasks added from the keyboard are not saved. Would you please help ! Thank you !
@ritunjaykumar54283 жыл бұрын
can you make playlist of android services. It is argent. please sir
@jivanmainali17425 жыл бұрын
sir without collapseactionview its working .what is its purpose??
@hectorjaviercampos58354 жыл бұрын
I get an error when I select the magnifying glass
@learnandearn48474 жыл бұрын
Whts the error
@hectorjaviercampos58354 жыл бұрын
@@learnandearn4847 I already fixed the error
@hectorjaviercampos58354 жыл бұрын
@@learnandearn4847 I had to filter by the content not by the index because when I filter and click on the item it does not show me the correct item if I take the index
@preetkaur47624 жыл бұрын
its not working with volley php mysql. please suggest me tutorial.
@mafiacodes4 жыл бұрын
Girl/boy in 2021 you should not be using either of volley/php, but still share ur source code then only I can help.
@preetkaur47624 жыл бұрын
@@mafiacodes so which library i should use for fetch mysql data base
@mafiacodes4 жыл бұрын
U should be using retrofit else use okhttp
@elimarkus92594 жыл бұрын
I cannot display the search icon on fragment can you please help me?
@mafiacodes4 жыл бұрын
Have u followed the steps
@elimarkus92594 жыл бұрын
I folowed the steps and i managed to filter just by the simple searchview . Its not reacting to andoidx version..cause it inflates the menu just with 3 dots of settings instead of search icon. And i didn't even set the "settings" item
@siddeshrevankar78084 жыл бұрын
I have problem in SearchView Basically I have EditText in my recycler view And whenever I search something it is showing successfully with each and every details But the value which I inserted in that EditText and search for something by SearchView then the value inserted for previous data will apply for the searched data For Ex: if I put the value in 2nd EditText and I search for 10th EditText the value which is in 2nd EditText will be in 10th EditText Please help me to solve this problem
@ali_abou_bakr4 жыл бұрын
Thanks alot
@mafiacodes4 жыл бұрын
Subscribe like share😊
@fadlanazizi85275 жыл бұрын
How can I search in the line below? for example rowcounttextview
@mafiacodes5 жыл бұрын
U cn search accordingly any field as per ur object, here its a simple string but u cn use use any object SUBSCRIBE LIKE SHARE
@fadlanazizi85275 жыл бұрын
@@mafiacodes can you give an example, because after I tried the movie title and rowcount the same
@osamaziadi2834 жыл бұрын
exellent
@muhammadfahad34414 жыл бұрын
Do you have same implementation in Kotlin? Can you give me the link?
@androiddevelopment87964 жыл бұрын
Which font is that?
@mafiacodes4 жыл бұрын
Snazzy operator
@androiddevelopment87964 жыл бұрын
@@mafiacodes How to install that to android studio
@mafiacodes4 жыл бұрын
It’s a paid font bro u can buy and install as normal fonts
@androiddevelopment87964 жыл бұрын
@@mafiacodes can you send website link?
@wemersondamasceno20164 жыл бұрын
does it work in fragment?
@mafiacodes4 жыл бұрын
Yes
@divyanshkushwaha47213 жыл бұрын
can u plz share the Kotlin code for the same?
@josephmota3584 жыл бұрын
Excuse me Sir. This does not works for me when I try to implement SearchView in Fragment. I mean, this works fine in MainActivity, but in Fragment does not. What could I do?
@josephmota3583 жыл бұрын
@Kristijan Boskovic This solved my problem. Thanks a lot
@harishmani82454 жыл бұрын
Bro when I click the search icon and i will search, nothing will shown
@mafiacodes4 жыл бұрын
Share code on GitHub
@BARATHICREATIVES4 жыл бұрын
simple... populate the data list immediately after initialize the movie name arraylist or whichever. (i.e., in Main Activity - inside on create).
@sunilkumarmaurya45625 жыл бұрын
Is ur code available on git if yes plz provide link.
@mafiacodes5 жыл бұрын
Link in description
@MrFyce4 жыл бұрын
how to add a search view in a fragment android and filter recycler view?
@josephmota3584 жыл бұрын
I am looking for the same
@josephmota3584 жыл бұрын
I've found the solution, my searchview inside a fragment is working now. My solution was: 1. Don't inflate options menu in MainActivity 2. Inflate options menu in the fragment you want to perform the search 3. Put this line in fragment onCreate's: sethasoptionsmenu(true) Then you'll be able to handle searchview from fragment
@techbuddy15194 жыл бұрын
it is crashing when i touch the search bar with an error at Attempt to read from field 'java.lang.Object android.widget.Filter$FilterResults.values' on a null object reference typecasting error at :-------moviesList.addAll((Collection
@mafiacodes4 жыл бұрын
share ur code on GitHub so I can see whats the problem...
@gongtaurine99035 жыл бұрын
Thank you!!!!!!
@mafiacodes5 жыл бұрын
Subscribe like share 😊
@PhongTran-hz4ht4 жыл бұрын
Hi, how to Filter RecyclerView with ListAdapter?
@mafiacodes4 жыл бұрын
the same way as explained here kzbin.info/www/bejne/eYXZq6KMqbCigJo ,,,but simply pass a the new filtered list
@towuhidekoli94805 жыл бұрын
please explain this in recyclerview item click listener please. last 7 days trying this but.this youtube no.not any videio this type. can't find any videio.please do this @Override public void onClick(View v) { final Intent intent; switch (getAdapterPostion()){ case 0: intent = new Intent(context, FirstActivity.class); break; case 1: intent = new Intent(context, SecondActivity.class); break; ... default: intent = new Intent(context, DefaultActivity.class); break; } context.startActivity(intent); }
@mafiacodes5 жыл бұрын
RecyclerView item Click using Interface | Advanced Way | Android kzbin.info/www/bejne/d5zMnaeKq5V2oKM
@shivamsehrawat76105 жыл бұрын
i don't know why but when i click on search view it just shows a blank screen.
@mafiacodes5 жыл бұрын
Share ur code on github or compare with mine on GitHub
@saicharan96524 жыл бұрын
@@mafiacodes facing the same issue...checked the code from GitHub and compared..everything seems to be same. don't know from where the issue is coming
@mafiacodes4 жыл бұрын
Share ur code of GitHub and I’ll try to run on my device.
@saicharan96524 жыл бұрын
@@mafiacodes github.com/scharan518/RecyclerView
@BARATHICREATIVES4 жыл бұрын
simple... populate the data list immediately after initialize the movie name arraylist or whichever. (i.e., in Main Activity - inside on create).
@soumayamondal69154 жыл бұрын
Sir, i flow this code step by step,,, but sir my result is not show properly... sir please help me
@mafiacodes4 жыл бұрын
Share code on GitHub
@wisnuwijaksono45624 жыл бұрын
how to search data from server ?
@mafiacodes4 жыл бұрын
Make an api call to the server on textchange or search submitted
@topreyalite2 жыл бұрын
Good
@avijitsamanta87844 жыл бұрын
How to change search output text color Like::: Input::::: ir Output::: ir(color change in "ir" bcz it is searching text)on man
@abhhiee4 жыл бұрын
please make an another video for Search View using Firebase Recycler view ..