1

Android: How to detect click on custom SearchView element

view story
linux-howto

http://stackoverflow.com – I m creating a custom SearchView, but so far I didn't find a (click)event or listener, if the user clicks on the searchView widget. So SearchView is close, user clicks on the search Icon (which listener?!), SearchView is opened. See the picture below Even an onclickListener on the searchView doesn't work. Any ideas? Also my code so far, if it might help, even if I don t think the problem is inside the code. Guess I don t find the right listener in the api... public class AbcSearchView extends SearchView implements OnQueryTextListener, OnFocusChangeListener, OnCloseListener { p (HowTos)