MaterialSearchView
MaterialSearchView copied to clipboard
Return item click in list of suggestions
How can i return the particular item clicked, is there a listener for it?
@osinakayah , yes there is a way to do that
mSearchView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { String query = (String) parent.getItemAtPosition(position); mSearchView.closeSearch(); } }