I am back again with me facing a real life issue again regarding an implementation in Android.
It is this, I have a Fragment in an Activity which displays a populated RecyclerView in the Fragment. Whereas, the Activity its in, has a SearchView.
Now, what I want is to filter the list in RecyclerView present in the fragment, based on text typed in the SearchView present in the Activity.
The question on my mind is how to implement this?
A callback implementation? If so, how? If something else, how??
Guys! I am in a bind. Please do let me know how to overcome this hurdle.
Counting on you guys! Awaits your positive and detailed response. Thanks!
I created another recyclerview in the activity and in its adapter I implemented filterable and then passed the exact same data to its adapter as is in the fragment's adapter. It worked for me that way.