简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM