public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu_search, menu);
MenuItem item = menu.findItem(R.id.menuSearch);
SearchView searchView = (SearchView)item.getActionView();
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String query) {
return false;
}
@Override
public boolean onQueryTextChange(String newText) {
Error -> listViewAdapter <- Error.getFilter().filter(newText);
return false;
}
});
return super.onCreateOptionsMenu(menu);
}
I want to do a findview type but with the arrayadapter that is in the class of my fragment, and find it in mainActivity, I want to do anything to try to find the listViewAdapter which is the name of my ArrayAdapter that is in the fragment , but you're not finding it in MainActivity.