1

Am using Toolbar (v21) in dialog which is working correctly. But when I am longpressing the menu item in toolbar, the default Toast (which shows menu item's title) is showing on orginal position of action bar.

Just disabling longpress event of menu item would be good for me.

gvlasov
  • 18,638
  • 21
  • 74
  • 110
Rajkumar S
  • 11
  • 1
  • 2

1 Answers1

0

This may help you to handle Long Click Listener on Toolbar.

Please add your comments if it is helpful.

Community
  • 1
  • 1
Hanan
  • 444
  • 4
  • 16
  • I think its a default behavior of option menu. There is no way to disable it. It is good to see toast on long click, when user don't know that what specific menu icon dose. :) – Hanan Mar 09 '15 at 05:20