Android RecyclerView Search Filter Functionality Using EditText

Android RecyclerView Search Filter Functionality Example Tutorial is present at your service.

Android RecyclerView Search Filter example guide you to implement search functionality in RecyclerView Using EditText.

We will use Android Studio to develop Android RecyclerView Search Filter tutorial.

We will also implement onItemClickListener on searched results.

First, check the output of this Android RecyclerView Search Filter tutorial in below video.

Download Source Code For Android RecyclerView Search Filter

[sociallocker]Download RecyclerSearchEditText[/sociallocker]

Wait for one minute

If you have not basic idea about RecyclerView and custom adapter, then visit RecyclerView CardView Example.

We will use EditText to get search query from user. If you want to use SearchView to get search query, then visit this example: RecyclerView SearchView Android.

For implementing RecyclerView with checkbox, then check RecyclerView CheckBox Example.

Visit this to implement RecyclerView with Button, RecyclerView Button Example.


Step 1: Create a new project in Android Studio.

Try to create android studio project with empty activity.

Step 2: Updating build.gradle(Module:app) file

Copy following source code into dependencies{}

Step 3: Coding cardview.xml

Create a new file into drawable folder and name it cardview.xml

Add below source code into it.

Step 4: Making rv_item.xml

Create a new layout resource file named rv_item.xml

Copy following source code into it

Step 5: Making Model class

Create a new JAVA class named and paste below source code

Step 6: Code for

Let’s create Custom Adapter for RecyclerView.

Make a new JAVA class named and paste below

Step 7: Update Main Activity

Finally Update activity_main.xml and files.

Updating activity_main.xml

Make following code into activity_main.xml


Copy following into

Share this tutorial with learners also.

Your sharing will help other in their path to android development.

Also you can use the comment section for any queries, reviews and suggestions.

So all for Android RecyclerView Search Filter tutorial.

Thank you.

Hardik Parsania

I am mobile app developer. I am always passionate about solving complex and real world problems.I have developed many apps with great interest and superior logical skills.

You may also like...

4 Responses

  1. Amitabh Bhandari says:

    Very Helpful Tutorial!! This tutorial searches in one RecyclerView in the same Activity using EditText..
    Can you please suggest how to use the EditText or SearchView to search for items in different Activities..
    I have seven RecyclerViews, in seven separate Activities.. I want to filter the results for items in all the RecyclerViews of my Activities..

    What changes i have to make to the CustomAdapter class or to the filter() method, and also to the MainActivity class as suggested by you in this tutorial..

    Hope you understood my problem… If you could mail me the suggestion .. it would be of great help to me…
    my mail id is [email protected] ..

    • Hardik Parsania says:

      Pretty good question!

      We are populating recyclerview and making search algorithm using movieNameArrayList in this example.
      To search from all the activities, you need to make a single arraylist which includes all the items of all the recyclerviews.
      Then implement search algorithm based on that common arraylist.

  2. Andro says:

    Bro when I filter and click on the filter item to share the data to next activity it shows wrong data on next activity, showing data of the previous item that is present on that position how can I solve that??? plz help me plz bro

Leave a Reply

Your email address will not be published. Required fields are marked *