Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HomeActionClickListener issue #332

Open
dillibabukadati opened this issue Oct 27, 2019 · 1 comment
Open

HomeActionClickListener issue #332

dillibabukadati opened this issue Oct 27, 2019 · 1 comment

Comments

@dillibabukadati
Copy link

For home action clickListener method never gets called.

searchInputView.setOnHomeActionClickListener(new FloatingSearchView.OnHomeActionClickListener() {
            @Override
            public void onHomeClicked() {
           Log.d(TAG,"Home action clicked");

            }
        });
@vishalknishad
Copy link

I faced same issue but found a workaround for it:

View leftActionIcon = mSearchView.findViewById(com.arlib.floatingsearchview.R.id.left_action);
leftActionIcon.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        // do something
        mSearchView.clearSearchFocus();
    }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants