开发者

Text selection bind in android 3.1

When you select text in android, a toolbar is opened with COPY & PASTE &开发者_如何学编程amp; WEB SEARCH. is there a way i can add stuff there via the API somehow?

Thanks!


What is the context of the text you are selecting? Is it in an EditText box? Or just highlighted text on a web page?

If it is an EditText, I think the answer is no.

http://developer.android.com/reference/android/view/KeyEvent.Callback.html#onKeyLongPress(int, android.view.KeyEvent)

This is the onLongPress of the EditText, where you can choose to either handle the event yourself or pass it on to be handled internally. It sounds like you want to be able to modify the way it handles the event internally, which I don't think you can do. The only way would be to implement your own spinner popup, with all of those options + yours.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜