[英]How to Disable Menu Item Long click listener in Toolbar
Am using Toolbar (v21) in dialog which is working correctly. 我正在对话框中正常使用工具栏(v21)。 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. 但是,当我长按工具栏中的菜单项时,默认的Toast(显示菜单项的标题)将显示在操作栏的原始位置。
Just disabling longpress event of menu item would be good for me. 只是禁用菜单项的longpress事件对我来说是件好事。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.