Guneet Kaur
Guneet Kaur

Reputation: 544

How can I make a single search for two different lists belonging to different activities in android studio?

I have two different activities :

one having department list and another activity having employee list.

I want to add search functionality to my app such that it can search data for all activities from a single activity.
Please suggest if it is possible and how ?

For code you can refer How to pass data collected in arraylist from json asset file in one activity having recyclerview to another activity again having recycler view?

Upvotes: 0

Views: 52

Answers (1)

Chetan Joshi
Chetan Joshi

Reputation: 5721

That means you need to search data of all Activity in single Activity.

So you need to add include conman SerchView in xml file of all Activities. Also Implement BaseActivity that holds search Implementation for all of your Acclivities.

Upvotes: 2

Related Questions