Search code examples
androidactionbarsherlocklong-press

Android - SherlockActionBar long press icon menu


I'm trying to listen on a long click in actionbarsherlock. The default action is to show an empty toast. I don't know how to change those actions like display a dialog or something like this. I have for example on the bar (Sherlock) an icon that says sync. I would like this button to show a toast when the user makes a long press

Thanks ! :)


Solution

  • See an answer from library developer (Jake Wharton) here. In a nutshell,

    It is not possible. The long press is reserved for toasting an action item's title.