如何启用默认的文本突出菜单,如:?复制/粘贴/搜索/股的Android的WebView
How to enable the default text highlights menu like: Copy/Paste/Search/Share in android webview ?
推荐答案
工作在Android 1.5 - 2.3,你可以使用 emulateShiftHeld()公布,因为2.2,但现在是pcated德$ P $。这种方法把你的WebView为文本选择模式。
working on Android 1.5 - 2.3 you can use emulateShiftHeld() made public since 2.2 but now is deprecated. this method put your WebView into text selection mode.
http://developer.android.com/intl/fr/reference/android/webkit/WebView.html#emulateShiftHeld%28%29
不幸的是没有复制/粘贴/搜索/股的功能集成在Android中,由于Android 2.0的文本选择 可通过触摸屏,但比其它驱动,有没有其他的事情可以做。
Unfortunately there's no copy/paste/search/share function integrated in Android, since Android 2.0 the text selection can be driven by touch but other than that, there's no other thing you can do.
相关推荐
最新文章