Answer the question
In order to leave comments, you need to log in
SearchView autosubmit?
Good evening, guys, I can not understand what the problem is.
here is the code
searchView.setSubmitButtonEnabled(true);
searchView.setQuery("text", true);
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener(){
@Override
public boolean onQueryTextChange(String newText){
Log.d("searchViews", "onQueryTextChange");
return true;
}
@Override
public boolean onQueryTextSubmit(String query){
Log.d("searchViews", "onQueryTextSubmit");
return true;
}
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question