android tutorial - Filter items inside recyclerview with a searchview in android | Developer android - android app development - android studio - android app developement
Filter items inside recyclerview with a searchview in android
add filter method in RecyclerView.Adapter:
itemsCopy is initialized in adapter's constructor like itemsCopy.addAll(items). If you do so, just call filter from OnQueryTextListener from SearchView: