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

Search touched event #297

Closed
ghost opened this issue Jan 23, 2018 · 2 comments
Closed

Search touched event #297

ghost opened this issue Jan 23, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 23, 2018

I was trying to find the event for when user clicks on search text to write something but trying some of events wasn't successful. is there any event for this?
(I want to use this event to open Google places selection activity.)

@jasontrask
Copy link

Setting the onFocusChangeListener should help you here...

mFloatingSearchView.setOnFocusChangeListener(new FloatingSearchView.OnFocusChangeListener() {
  @Override
  public void onFocus() {
    System.out.println(" >>> Focus...");
  }

  @Override
  public void onFocusCleared() {
    System.out.println(" >>> Focus cleared...");
  }
});

@ghost
Copy link
Author

ghost commented Feb 9, 2018

@jasontrask Thanks. it seems there were two FocusEvent listeners and i have tried the other one and it wasn't working.

@ghost ghost closed this as completed Feb 9, 2018
This issue was closed.
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

1 participant