Your just awesome sir ... I have no words.. u tell the things really great....ese hi video dalte rahiyega
@mohamedayad703 жыл бұрын
seems like i will be here all the night xD
@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!
@CeziBel3 жыл бұрын
OMG I love u man u saved my lifeeee LOVEE you so much you can't even imagine 😍❤😍❤😘❤😍
@mafiacodes3 жыл бұрын
love u too bro...
@MinecraftLetstime4 жыл бұрын
I just finished this playlist. I have to thank you for this. It was perfect! Well done.
@mafiacodes4 жыл бұрын
Subscribe like share
@dineshmunusamy82783 жыл бұрын
Superb teaching bro....
@codingmerah83404 жыл бұрын
thank you so much my problem has been solved, good job man
@mafiacodes4 жыл бұрын
Subscribe like share😊
@hadarangeethika3 жыл бұрын
This was very useful 😃, thank you so much 😊
@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
@user-xr6zo2qf7y3 жыл бұрын
thank you
@riteshfamily3693 жыл бұрын
Sir can use search view on my card view dashboard i have to use there also grid layout
@mafiacodes3 жыл бұрын
U need to perform search on ur list so it dosen’t matter what view ur using
@riteshfamily3693 жыл бұрын
@@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
@harshkaushik64262 жыл бұрын
really very helpful.........and clear as crisp, no extra bullshit. Well done My Friend.
@hianuyesperidiao54993 жыл бұрын
what theme do you use for android studio? it's so beautiful
@patriciogonzalez33604 жыл бұрын
Thank you for this tutorial. Works for me :D
@mafiacodes4 жыл бұрын
Subscribe like share😊
@alexshiferaw71804 жыл бұрын
Thank you ! nice video and good explanation.
@SatyamGupta-nx4zj2 жыл бұрын
when i click on search button my screen gets clear and then the searching is also not working
@milanribadiya28334 жыл бұрын
Thank you for your filter but I have not set on click into on bind view holder .please help me.
@mafiacodes4 жыл бұрын
I dint get you, share code on github Subscribe like share 😊
@milanribadiya28334 жыл бұрын
Sir please. You make video of recyclerview's search view + set on click please...
@mhdunknown2 жыл бұрын
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.
@user-pc5xz9oj6c Жыл бұрын
i dont find Filtrable library on git hub .. what u talking about ?
@DC-fn8kh2 жыл бұрын
Sir, how to apply this search filter in the shopping cart adapter which only use the interfaces ?
@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 kzfaq.info/get/bejne/jNqef9N5utuWhWQ.html
@vikassaini63313 жыл бұрын
Thanks for the video 👍
@josephjetabela49933 жыл бұрын
yo How about there are another List of movie price, movie time , ... how to make it filterable??
@BABATECHNOPEDIA4 жыл бұрын
Sir! How to use this filter option in firestore recycler view
@alanmc96603 жыл бұрын
Not easy to do! you need to use third party Algolia!!
@yashtyagi80403 жыл бұрын
How I use search view if I have 2 to more string in recyle view. Please tell me
@mohamedagbaria34543 жыл бұрын
the search icon doesn't appear on the screen why ? in the Android manifest
@kavindumihiranga54883 жыл бұрын
Thank u so much buddy ❤️❤️
@gurubhai4918 Жыл бұрын
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 🍺
@siddeshrevankar78083 жыл бұрын
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
@corrector7405 Жыл бұрын
Amazing tutorial, thanks a lot!
@paullin70523 жыл бұрын
amazing tutorial!
@TheNoobDhruv2 жыл бұрын
please solve this error public class PdfAdapter extends RecyclerView.Adapter implements Filterable { private Context context; private List pdfFiles; private List pdflistAll; private OnPdfFileSelectListener listener; public PdfAdapter(Context context, List pdfFiles, OnPdfFileSelectListener listener) { this.context = context; this.pdfFiles = pdfFiles; this.listener = listener; this.pdflistAll = new ArrayList(pdfFiles); // error Arraylist }
@Alaa-mc1vu2 жыл бұрын
Hello how can i do multiple filter with recyclerview? 🤔
@emremuslu77633 жыл бұрын
Thank you so much!
@EyeXD2 жыл бұрын
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??
@avijitsamanta87844 жыл бұрын
How to change search output text color Like::: Input::::: ir Output::: ir(color change in "ir" bcz it is searching text)on man
@pradiktabagus3 жыл бұрын
thank you, my project is done 😍❤😍❤😘❤😍
@ayeshanoreen7932 жыл бұрын
Thank you sooooo much for this video🥺
@vohoangvinh71944 жыл бұрын
Thank you it's wonderful
@hissabis20684 жыл бұрын
Thank you
@thejaniaravinda96353 жыл бұрын
Please let me know how to search two arraylists using filterable
@rajm26714 жыл бұрын
Clear explanation. Keep it up :-)
@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.
@pew44102 жыл бұрын
@@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.
@pew44102 жыл бұрын
@@Vandrea97 tengo ese mismo problema, pudiste solucionar?
@Sampelmind814 жыл бұрын
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.
@mafiacodes4 жыл бұрын
👋 can u share ur code on github so i can check... Subscribe like share 😊
@lalizism4 жыл бұрын
@@mafiacodes I have the same problem Could you please help me too??? hey from México
@mafiacodes4 жыл бұрын
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.
@mafiacodes4 жыл бұрын
Hey, plz share code on GitHub, or you can compare my code.
@Ropa78914 жыл бұрын
im having the same problem
@techlinesystems48904 жыл бұрын
Am really enjoying your series, but please can you make same video for recyclerview search
@shrinivasbaldawa22323 жыл бұрын
The video was really very awesome..can you do the same for data stored in database and showing it in recyclerview?
@ajaygalagali59633 жыл бұрын
Why this isn't working for app:showAsAction = "always" ?
@mafiacodes3 жыл бұрын
U need space for search view that’s why u need to collapse the action bar, therefore u need to use collapseActionView
@AmritaKumari-fl5uu3 жыл бұрын
How to create filter like flipkart or myntra can you pls also share tutorial of that?
@mafiacodes3 жыл бұрын
the same way, it depends how ur data is organised
@sorinaion13654 жыл бұрын
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 !
@samuelmistico3 жыл бұрын
Muchas gracias, con una arquitectura MVP
@linusetikpon35273 жыл бұрын
very useful
@ritunjaykumar54283 жыл бұрын
can you make playlist of android services. It is argent. please sir
@jivanmainali17424 жыл бұрын
Sir how to change color of searchview as well text inside of it
@rnjita5813 жыл бұрын
Can you help me how to search without changing it's position number... Or How to show previous position number
@mafiacodes3 жыл бұрын
cud not get what u mean?
@rnjita5813 жыл бұрын
@@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)
@summmitbruh1234 жыл бұрын
How do I Implement this in a PagedListAdapter with viewmodels?
@jivanmainali17424 жыл бұрын
sir without collapseactionview its working .what is its purpose??
@Dhruvh14 жыл бұрын
Will it be wise to use it for a huge dataset?
@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
@ThreadsX4 жыл бұрын
Thanks, How can I get the search filters items, position?
@mafiacodes4 жыл бұрын
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.
@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 (kzfaq.info/get/bejne/d9GZn9eF25anmnU.html) 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
@soumayamondal69154 жыл бұрын
Sir can you please tell me how add a fiture in recyclerview to multiple select to delete from recyclerview
@user-hk2po2xb3s2 жыл бұрын
nice vid👍
@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
@rohithsuri17524 жыл бұрын
Awesome videos sir, could u make a video on search view in recycler view which is there in a fragment ?
@hectorjaviercampos58354 жыл бұрын
I get an error when I select the magnifying glass
@learnandearn48474 жыл бұрын
Whts the error
@hectorjaviercampos58353 жыл бұрын
@@learnandearn4847 I already fixed the error
@hectorjaviercampos58353 жыл бұрын
@@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
@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
@MrLOLs14 жыл бұрын
Thanks 😊
@mafiacodes4 жыл бұрын
Welcome 😊
@ashikroshan9954 жыл бұрын
Cannot resolve method 'getFilter' in 'Adapter' i am having this problem
@mafiacodes4 жыл бұрын
Share code on GitHub
@Sidex150-g1p2 жыл бұрын
Lol mouse se type kar rahe ho kya? Btw thanks for this.
@MrFyce4 жыл бұрын
how to add a search view in a fragment android and filter recycler view?
@josephmota3583 жыл бұрын
I am looking for the same
@josephmota3583 жыл бұрын
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
@divyanshkushwaha47212 жыл бұрын
can u plz share the Kotlin code for the same?
@ninomuring66534 жыл бұрын
Is the method the same when using FirestoreRecyclerAdapter ?
@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
@abhhiee4 жыл бұрын
please make an another video for Search View using Firebase Recycler view ..
@osamaziadi2833 жыл бұрын
exellent
@josephmota3583 жыл бұрын
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
@preetkaur47623 жыл бұрын
its not working with volley php mysql. please suggest me tutorial.
@mafiacodes3 жыл бұрын
Girl/boy in 2021 you should not be using either of volley/php, but still share ur source code then only I can help.
@preetkaur47623 жыл бұрын
@@mafiacodes so which library i should use for fetch mysql data base
@mafiacodes3 жыл бұрын
U should be using retrofit else use okhttp
@dstack34043 жыл бұрын
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?
@mafiacodes3 жыл бұрын
Yes, load up the recycler view and do the search
@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...
@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
@amitghosh39383 жыл бұрын
when I press search view on empty list the below line is producing and error recyclerAdapter.getFilter().filter(newText); how to deal with it?
@mafiacodes3 жыл бұрын
What is the error?
@amitghosh39383 жыл бұрын
@@mafiacodes recyclerAdapter is producing null pointerexception (Its working fine when there is at least one view in the list)
@ali_abou_bakr4 жыл бұрын
Thanks alot
@mafiacodes4 жыл бұрын
Subscribe like share😊
@dovahpass2 жыл бұрын
How would this be done with livedata using MVVM?
@mafiacodes2 жыл бұрын
kzfaq.info/sun/PLdHg5T0SNpN3-dPWdHlgu9lU3JnksBoHc
@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
@kroy24013 жыл бұрын
Sir, I want to perform a 2nd filteration on the 1st filter list what should i do?
@mafiacodes3 жыл бұрын
Create a second search field and use the filtered list as the input list for the second search field
@kroy24013 жыл бұрын
@@mafiacodes tried but not happening , please make a short video on that and provide me the link sir.
@4dn9073 жыл бұрын
Where r u from?
@mafiacodes3 жыл бұрын
🇮🇳 but why?
@elimarkus92593 жыл бұрын
I cannot display the search icon on fragment can you please help me?
@mafiacodes3 жыл бұрын
Have u followed the steps
@elimarkus92593 жыл бұрын
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
@muhammadfahad34414 жыл бұрын
Do you have same implementation in Kotlin? Can you give me the link?
@sunilkumarmaurya45625 жыл бұрын
Is ur code available on git if yes plz provide link.
@mafiacodes5 жыл бұрын
Link in description
@yashthakur80584 жыл бұрын
Add a tutorial to set search view to Listview with CursorAdapter
@harishmani82454 жыл бұрын
Bro when I click the search icon and i will search, nothing will shown
@mafiacodes4 жыл бұрын
Share code on GitHub
@BARATHICREATIVES3 жыл бұрын
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
@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
@hectorjaviercampos58354 жыл бұрын
I did everything you did and the search bar did not appear
@mafiacodes4 жыл бұрын
Action view set?, else share code on GitHub
@hectorjaviercampos58354 жыл бұрын
@@mafiacodes Can I share it with you on google drive?
@mafiacodes4 жыл бұрын
Share on GitHub else u can go to my repo on GitHub and compare
@hectorjaviercampos58354 жыл бұрын
@@mafiacodes It already worked, but if I write the lines from 67 to 78 it marks an error and the App closes
you didnt show us your activity_main.xml file... this makes it hard to implement in our own project
@mafiacodes4 жыл бұрын
U can view the complete repo on GitHub
@towuhidekoli94804 жыл бұрын
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); }
@mafiacodes4 жыл бұрын
RecyclerView item Click using Interface | Advanced Way | Android kzfaq.info/get/bejne/d9GZn9eF25anmnU.html
@wisnuwijaksono45624 жыл бұрын
how to search data from server ?
@mafiacodes4 жыл бұрын
Make an api call to the server on textchange or search submitted