Open febinmathew opened 7 years ago
FloatingSearchView floatingSearchView = findViewById(R.id.floating_search_view);
floatingSearchView.setOnSearchListener(new FloatingSearchView.OnSearchListener() {
@Override
public void onSuggestionClicked(SearchSuggestion searchSuggestion) {
}
@Override
public void onSearchAction(String currentQuery) {
Toast.makeText(YourActivity.this, currentQuery, Toast.LENGTH_SHORT).show();
}
});
Hope this solves your issue.
I can't find a way to detect if the search is submitted by the user !