floatingsearchview icon indicating copy to clipboard operation
floatingsearchview copied to clipboard

Can't detect search Submit !

Open febinmathew opened this issue 7 years ago • 1 comments

I can't find a way to detect if the search is submitted by the user !

febinmathew avatar Sep 30 '17 06:09 febinmathew

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.

anandzoom avatar Oct 15 '17 18:10 anandzoom