是否有可能加入的Andr​​oid(系统菜单)的上下文菜单的一些项目 [英] Is it possible to add some item in the context menus of android (system menu)

查看:101
本文介绍了是否有可能加入的Andr​​oid(系统菜单)的上下文菜单的一些项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我输入一些文字和preSS并按住它,然后右键菜单是psented与像剪切,复制,选择文本等项目$ P $。

有什么办法我自己的自定义项目添加到这个上下文菜单?我做这件事不是如何工作的,但我想这应该是可能的东西登记在清单中,就像注册活动和节目。 。

谢谢

任何想法都wellcomed

解决方案
  

有什么办法我自己的自定义项目添加到这个上下文菜单?

仅适用于在自己的活动部件,不会对系统作为一个整体。

此外,的EditText 是有问题的,甚至为自己的活动,一些设备制造商绕过正常的上下文菜单系统,所以你不能添加到他们。

话虽这么说,对于自己的活动,只要遵循的创建上下文菜单感兴趣的部件。

When I enter some text and press and hold on it then context menu is presented with items like cut,copy,select text and so on.

Is there any way to add my own custom item to this context menu ? I do not how this things works but I guess that should be possible to register something in the manifest just like registering activities and broadcasts . . .

Thanks,

Any ideas are wellcomed

解决方案

Is there any way to add my own custom item to this context menu ?

Only for widgets in your own activities, not for the system as a whole.

Also, EditText is problematic even for your own activities, as some device manufacturers are bypassing the normal context menu system, so you can't add to them.

That being said, for your own activities, just follow the instructions to create a context menu for the widgets of interest.

这篇关于是否有可能加入的Andr​​oid(系统菜单)的上下文菜单的一些项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆