I'm using the SearchView widget of the ActionBar (standard version, not ABS), and I am trying to hide the application icon that is displayed on the left side of the expanded SearchView. It's already hidden in the application, and it's only visible when the SearchView is open, which is not what I want.
I found that the SearchView has a setOnCloseListener
, but nothing to handle the open event...
To solve this, I just had to add this in my style for the ActionBar:
<item name="android:icon">@android:color/transparent</item>