上下文操作栏文本选择 [英] Contextual Action Bar text selection

查看:115
本文介绍了上下文操作栏文本选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么办法来添加文本时,选择了这样一个自定义的上下文操作栏:

is there any way to add a custom contextual action bar when text is selected like this:

我有环顾四周喜欢这里:的http:/ /developer.android.com/guide/topics/ui/menus.html#context-menu

I have had a look around like here: http://developer.android.com/guide/topics/ui/menus.html#context-menu

但它确实没有太多信息的选择的EditText。

But it really doesn't have much information an the EditText selection.

我使用的是物理的Andr​​oid 4.0.3设备,使所有的API是提供给我的。

I am using a physical Android 4.0.3 device so all the API is available to me.

任何人有什么想法?

编辑的人谁想要知道如何做到这一点我介绍的code此处

Edit for anyone who wants to know how to do this I documented the code here

http://www.muktware.com/4022/text-selection-cab

推荐答案

我已经作出了自己的这个编辑codeA位,以满足我的需求的版本,我不相信有这样做的任何实际的方式

I have made my own version of this editing the code a bit to meet my needs, I do not believe that there is any actual way of doing this.

这篇关于上下文操作栏文本选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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