简体   繁体   English

WebView在上下文操作栏中添加自定义菜单项并覆盖现有项

[英]WebViewAdd Custom Menu Item in Contextual Action Bar with overriding existing

I need to add some custom menu items in contextual action bar for WebView. 我需要在上下文操作栏中为WebView添加一些自定义菜单项。 My current research shows that only one of the following two things can be done. 我目前的研究表明,只能完成以下两项操作之一。

  1. Override action mode to supply custom action items. 覆盖操作模式以提供定制操作项。 In this case default items are gone. 在这种情况下,默认项目消失了。
  2. Use system provided action mode. 使用系统提供的操作模式。 In this way, I can't add my menu items. 这样,我无法添加菜单项。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM