Reputation: 544
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
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