What event(s) I should listen to determine when user clicks on iconified SearchView. I want to remove some items (ActionBar navigation tabs, if that is important) from action bar to make more space in portrait orientation.
I’ve tried OnClickListener, OnFocusChangeListener, OnTouchListener and other events but neither gets triggered by SearchView expansion.
Since API Level 14 you have a dedicated listener:
http://developer.android.com/guide/topics/ui/actionbar.html