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

Listen to Back Arrow button #311

Open
hqdai opened this issue Jul 6, 2018 · 2 comments
Open

Listen to Back Arrow button #311

hqdai opened this issue Jul 6, 2018 · 2 comments

Comments

@hqdai
Copy link

hqdai commented Jul 6, 2018

hi Airmorty,
If I use LeftActionMode(2) (Search icon), when I click on that or click on search input text then press Back Arrow icon, it seems no Event Listener to handle Back Arrow icon pressed.

Thanks,
Daniel

@spapapan
Copy link

I need this functionality also. Anyone knows how to catch that event?

@yolave
Copy link

yolave commented Aug 23, 2018

To achieve this, you need to get the back arrow view from the floating search. This is the way how i do it:

//Setting on click listener when user press home image
View leftActionIcon = floatingSearchView.findViewById(com.arlib.floatingsearchview.R.id.left_action); leftActionIcon.setOnClickListener(v -> { //DO WHATEVER YOU WANT HERE });

I hope this help you.

Cheers

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

3 participants